Packages

case class Client(stack: Stack[ServiceFactory[Request, Response]] = Client.stack, params: Params = Client.params) extends EndpointerStackClient[Request, Response, Client] with WithSessionPool[Client] with WithDefaultLoadBalancer[Client] with Transformable[Client] with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. WithDefaultLoadBalancer
  7. WithSessionPool
  8. EndpointerStackClient
  9. WithSessionQualifier
  10. WithClientSession
  11. WithClientTransport
  12. WithClientAdmissionControl
  13. ClientParams
  14. CommonParams
  15. StackClient
  16. StackBasedClient
  17. Transformable
  18. Parameterized
  19. Client
  20. AnyRef
  21. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(stack: Stack[ServiceFactory[Request, Response]] = Client.stack, params: Params = Client.params)

Type Members

  1. type Context = TransportContext
    Attributes
    protected
  2. type In = Any
    Attributes
    protected
  3. type Out = Any
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def configured[P](psp: (P, Param[P])): Client
    Definition Classes
    Client → EndpointerStackClient → StackClient → Parameterized
  7. def configured[P](p: P)(implicit arg0: Param[P]): Client
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  8. def configuredParams(newParams: Params): Client
    Definition Classes
    Client → EndpointerStackClient → StackClient → Parameterized
  9. def copy1(stack: Stack[ServiceFactory[Request, Response]] = this.stack, params: Params = this.params): Client
    Attributes
    protected
    Definition Classes
    Client → EndpointerStackClient
  10. def endpointer: Stackable[ServiceFactory[Request, Response]]
    Attributes
    protected
    Definition Classes
    Client → EndpointerStackClient
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def filtered(filter: Filter[Request, Response, Request, Response]): Client
    Definition Classes
    Client → EndpointerStackClient
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def injectors: Seq[ClientParamsInjector]
    Attributes
    protected
    Definition Classes
    EndpointerStackClient
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def methodBuilder(dest: Name): MethodBuilder

    Create a http.MethodBuilder for a given destination.

    Create a http.MethodBuilder for a given destination.

    See also

    user guide

  18. def methodBuilder(dest: String): MethodBuilder

    Create a http.MethodBuilder for a given destination.

    Create a http.MethodBuilder for a given destination.

    See also

    user guide

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def newClient(dest: Name, label0: String): ServiceFactory[Request, Response]
    Definition Classes
    Client → EndpointerStackClient → Client
  21. final def newClient(dest: String, label: String): ServiceFactory[Request, Response]
    Definition Classes
    Client
  22. final def newClient(dest: String): ServiceFactory[Request, Response]
    Definition Classes
    Client
  23. def newService(dest: Name, label: String): Service[Request, Response]
    Definition Classes
    EndpointerStackClient → Client
  24. final def newService(dest: String, label: String): Service[Request, Response]
    Definition Classes
    Client
  25. final def newService(dest: String): Service[Request, Response]
    Definition Classes
    Client
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val params: Params
    Definition Classes
    Client → StackClient → Parameterized
  29. final def registerTransporter(transporterName: String): Unit
    Attributes
    protected
    Definition Classes
    StackClient
  30. val stack: Stack[ServiceFactory[Request, Response]]
    Definition Classes
    Client → StackClient
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def transformed(t: Transformer): Client
    Definition Classes
    Client → StackClient → Transformable
  33. def transformers: Seq[ClientStackTransformer]
    Attributes
    protected
    Definition Classes
    EndpointerStackClient
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  37. val withAdmissionControl: ClientAdmissionControlParams[Client]
    Definition Classes
    Client → WithClientAdmissionControl
  38. def withDecompression(enabled: Boolean): Client

    Enables decompression of http content bodies.

  39. def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client
    Definition Classes
    Client → CommonParams
  40. def withExecutionOffloaded(pool: FuturePool): Client
    Definition Classes
    Client → CommonParams
  41. def withExecutionOffloaded(executor: ExecutorService): Client
    Definition Classes
    Client → CommonParams
  42. def withHttp2: Client

    Enable HTTP/2

    Enable HTTP/2

    Note

    this will override whatever has been set in the toggle.

  43. def withHttpStats: Client

    Enable the collection of HTTP specific metrics.

    Enable the collection of HTTP specific metrics. See http.filter.StatsFilter.

  44. def withKerberos(clientKerberosConfiguration: ClientKerberosConfiguration): Client

    Enable kerberos client authentication for http requests

  45. def withLabel(label: String): Client
    Definition Classes
    Client → CommonParams
  46. def withLabels(keywords: String*): Client
    Definition Classes
    CommonParams
  47. val withLoadBalancer: DefaultLoadBalancingParams[Client]
    Definition Classes
    Client → WithDefaultLoadBalancer
  48. def withMaxHeaderSize(size: StorageUnit): Client

    For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values.

    For HTTP1*, configures the max size of headers For HTTP2, sets the MAX_HEADER_LIST_SIZE setting which is the maximum number of uncompressed bytes of header name/values. These may be set independently via the .configured API.

  49. def withMaxInitialLineSize(size: StorageUnit): Client

    Configures the maximum initial line length the client can receive from a server.

  50. def withMaxResponseSize(size: StorageUnit): Client

    Configures the maximum response size that client can receive.

  51. def withMonitor(monitor: Monitor): Client
    Definition Classes
    Client → CommonParams
  52. def withNoHttp2: Client

    Disable HTTP/2

    Disable HTTP/2

    Note

    this will override whatever has been set in the toggle.

  53. def withParams(params: Params): Client
    Definition Classes
    EndpointerStackClient → StackClient → Parameterized
  54. def withRequestTimeout(timeout: Duration): Client
    Definition Classes
    Client → CommonParams
  55. def withRequestTimeout(timeout: Tunable[Duration]): Client
    Definition Classes
    CommonParams
  56. def withResponseClassifier(responseClassifier: ResponseClassifier): Client
    Definition Classes
    Client → CommonParams
  57. def withRetryBackoff(backoff: Backoff): Client
    Definition Classes
    Client → ClientParams
  58. def withRetryBudget(budget: RetryBudget): Client
    Definition Classes
    Client → ClientParams
  59. val withSession: ClientSessionParams[Client]
    Definition Classes
    Client → WithClientSession
  60. val withSessionPool: SessionPoolingParams[Client]
    Definition Classes
    Client → WithSessionPool
  61. val withSessionQualifier: SessionQualificationParams[Client]
    Definition Classes
    Client → WithSessionQualifier
  62. def withSni(hostname: String): Client

    Configures the sni hostname for SSL.

    Configures the sni hostname for SSL.

    See also

    Java's SNIHostName for more details.

  63. def withStack(fn: (Stack[ServiceFactory[Request, Response]]) ⇒ Stack[ServiceFactory[Request, Response]]): Client
    Definition Classes
    Client → EndpointerStackClient → StackClient
  64. def withStack(stack: Stack[ServiceFactory[Request, Response]]): Client
    Definition Classes
    Client → EndpointerStackClient → StackClient
  65. def withStatsReceiver(statsReceiver: StatsReceiver): Client
    Definition Classes
    Client → CommonParams
  66. def withStreaming(fixedLengthStreamedAfter: StorageUnit): Client

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    This method configures fixedLengthStreamedAfter limit, which effectively turns on streaming (think withStreaming(true)). The fixedLengthStreamedAfter, however, disables streaming for sufficiently small messages of known fixed length.

    If Content-Length of a message does not exceed fixedLengthStreamedAfter it is buffered and its content is available through Request.content or Request.contentString.

    Messages without Content-Length header are always streamed regardless of their actual content length and the fixedLengthStreamedAfter value.

    Response.isChunked should be used to determine whether a message is streamed (isChunked == true) or buffered (isChunked == false).

  67. def withStreaming(enabled: Boolean): Client

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    Streaming allows applications to work with HTTP messages that have large (or infinite) content bodies.

    If enabled is set to true, the message content is available through a com.twitter.io.Reader, which gives the application a handle to the byte stream.

    If enabled is set to false, the entire message content is buffered up to maximum allowed message size.

  68. def withTls(hostname: String): Client
  69. def withTlsWithoutValidation: Client
  70. def withTracer(tracer: Tracer): Client
    Definition Classes
    Client → CommonParams
  71. val withTransport: ClientTransportParams[Client]
    Definition Classes
    Client → WithClientTransport

Deprecated Value Members

  1. def transformed(f: (Stack[ServiceFactory[Request, Response]]) ⇒ Stack[ServiceFactory[Request, Response]]): Client
    Definition Classes
    EndpointerStackClient
    Annotations
    @deprecated
    Deprecated

    (Since version 2018-10-30) Use withStack(Stack[ServiceFactory[Req, Rep]] => Stack[ServiceFactory[Req, Rep]]) instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithSessionPool[Client]

Inherited from WithSessionQualifier[Client]

Inherited from WithClientSession[Client]

Inherited from WithClientTransport[Client]

Inherited from ClientParams[Client]

Inherited from CommonParams[Client]

Inherited from StackClient[Request, Response]

Inherited from StackBasedClient[Request, Response]

Inherited from Transformable[Client]

Inherited from Parameterized[Client]

Inherited from finagle.Client[Request, Response]

Inherited from AnyRef

Inherited from Any

Ungrouped