Liking cljdoc? Tell your friends :D

finagle-clojure.builder.client

Functions for creating and altering com.twitter.finagle.Client objects independent of any particular codec. Generally speaking codec-specific client functions should be preferred, but these are included for comptability with older systems configured at the client level.

Functions for creating and altering `com.twitter.finagle.Client` objects independent
of any particular codec. Generally speaking codec-specific client functions
should be preferred, but these are included for comptability with older systems
configured at the client level.
raw docstring

buildclj

(build b)

Given a completed ClientBuilder, return a new Service that represents this client.

Arguments:

  • a ClientBuilder

Returns:

a [[com.twitter.finagle.Service]] that represents a client request

Given a completed `ClientBuilder`, return a new `Service` that represents this client.

*Arguments*:

  * a ClientBuilder

*Returns*:

  a [[com.twitter.finagle.Service]] that represents a client request
sourceraw docstring

builderclj

(builder)
source

close!clj

(close! client)

Stops the given client.

Arguments:

  • client: an instance of [[com.twitter.finagle.Client]]

Returns:

a Future that closes when the client stops

Stops the given client.

*Arguments*:

  * `client`: an instance of [[com.twitter.finagle.Client]]

*Returns*:

  a Future that closes when the client stops
sourceraw docstring

codecclj

(codec b cdc)

Configures the given ServerBuilder with a codec.

Arguments:

  • b: a ClientBuilder
  • cdc: a Codec, CodecFactory, or Function1 that defines the server codec

Returns:

a ClientBuilder configured with the given codec

Configures the given ServerBuilder with a codec.

*Arguments*:

  * `b`: a ClientBuilder
  * `cdc`: a Codec, CodecFactory, or Function1 that defines the server codec

*Returns*:

  a ClientBuilder configured with the given codec
sourceraw docstring

host-connection-limitclj

(host-connection-limit b limit)

Configures the given ClientBuilder with a host connection limit.

Arguments:

  • b: a ClientBuilder
  • limit: the number to limit connections to

Returns:

a ClientBuilder configured with the given limit

Configures the given ClientBuilder with a host connection limit.

*Arguments*:

  * `b`: a ClientBuilder
  * `limit`: the number to limit connections to

*Returns*:

  a ClientBuilder configured with the given limit
sourceraw docstring

hostsclj

(hosts b hosts)

Configures the given ClientBuilder with one or more hosts.

Arguments:

  • b: a ClientBuilder
  • hosts: a SocketAddress, Seq<SocketAddress> or comma-separated string of hostnames

Returns:

a ClientBuilder configured with the given hosts

Configures the given ClientBuilder with one or more hosts.

*Arguments*:

  * `b`: a ClientBuilder
  * `hosts`: a `SocketAddress`, `Seq<SocketAddress>` or comma-separated string of hostnames

*Returns*:

  a ClientBuilder configured with the given hosts
sourceraw docstring

loggerclj

(logger b l)

Configures the given ClientBuilder with a Logger.

Arguments:

  • b: a ClientBuilder
  • l: a [[java.util.logging.Logger]]

Returns

a ClientBuilder configured with the given Logger

Configures the given ClientBuilder with a Logger.

*Arguments*:

  * `b`: a ClientBuilder
  * `l`: a [[java.util.logging.Logger]]

*Returns*

  a ClientBuilder configured with the given Logger
sourceraw docstring

report-toclj

(report-to b rcvr)

Configures the given ClientBuilder with a StatsReceiver to report to.

Arguments:

  • b: a ClientBuilder
  • rcvr: a [[com.twitter.finagle.stats.StatsReceiver]]

Returns:

a ClientBulider configured with the given StatsReceiver

Configures the given ClientBuilder with a StatsReceiver to report to.

*Arguments*:

  * `b`: a ClientBuilder
  * `rcvr`: a [[com.twitter.finagle.stats.StatsReceiver]]

*Returns*:

  a ClientBulider configured with the given StatsReceiver
sourceraw docstring

retriesclj

(retries b retries)

Configures the given ClientBuilder with a retry limit.

Arguments:

  • b: a ClientBuilder
  • retries: the number of times to retry

Returns:

a ClientBuilder configured with the given retries

Configures the given ClientBuilder with a retry limit.

*Arguments*:

  * `b`: a ClientBuilder
  * `retries`: the number of times to retry

*Returns*:

  a ClientBuilder configured with the given retries
sourceraw docstring

tcp-connect-timeoutclj

(tcp-connect-timeout b timeout)

Configures the given ClientBuilder with a TCP connection timeout.

Arguments:

  • b: a ClientBuilder
  • timeout: a [[com.twitter.util.Duration]]

Returns:

a ClientBuilder configured with the given timeout

Configures the given ClientBuilder with a TCP connection timeout.

*Arguments*:

  * `b`: a ClientBuilder
  * `timeout`: a [[com.twitter.util.Duration]]

*Returns*:

  a ClientBuilder configured with the given timeout
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close