final case class Client(stack: Stack[ServiceFactory[Request, Response]] = Mux.Client.stack, params: Params = Mux.Client.params) extends PushStackClient[Request, Response, Client] with WithDefaultLoadBalancer[Client] with OpportunisticTlsParams[Client] with WithCompressionPreferences[Client] with Product with Serializable
- Alphabetic
- By Inheritance
- Client
- Serializable
- Serializable
- Product
- Equals
- WithCompressionPreferences
- OpportunisticTlsParams
- WithDefaultLoadBalancer
- PushStackClient
- EndpointerStackClient
- WithSessionQualifier
- WithClientSession
- WithClientTransport
- WithClientAdmissionControl
- ClientParams
- CommonParams
- StackClient
- StackBasedClient
- Transformable
- Parameterized
- Client
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Client(stack: Stack[ServiceFactory[Request, Response]] = Mux.Client.stack, params: Params = Mux.Client.params)
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
configured[P](psp: (P, Param[P])): Client
- Definition Classes
- EndpointerStackClient → StackClient → Parameterized
-
def
configured[P](p: P)(implicit arg0: Param[P]): Client
- Definition Classes
- EndpointerStackClient → StackClient → Parameterized
-
def
configuredParams(newParams: Params): Client
- Definition Classes
- EndpointerStackClient → StackClient → Parameterized
-
def
copy1(stack: Stack[ServiceFactory[Request, Response]], params: Params): Client
- Attributes
- protected
- Definition Classes
- Client → PushStackClient → EndpointerStackClient
-
final
def
endpointer: Stackable[ServiceFactory[Request, Response]]
- Attributes
- protected
- Definition Classes
- PushStackClient → EndpointerStackClient
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
filtered(filter: Filter[Request, Response, Request, Response]): Client
- Definition Classes
- EndpointerStackClient
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
injectors: Seq[ClientParamsInjector]
- Attributes
- protected
- Definition Classes
- EndpointerStackClient
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newClient(dest: Name, label0: String): ServiceFactory[Request, Response]
- Definition Classes
- Client → EndpointerStackClient → Client
-
final
def
newClient(dest: String, label: String): ServiceFactory[Request, Response]
- Definition Classes
- Client
-
final
def
newClient(dest: String): ServiceFactory[Request, Response]
- Definition Classes
- Client
-
def
newPushTransporter(sa: SocketAddress): PushTransporter[ByteReader, Buf]
- Attributes
- protected
- Definition Classes
- Client → PushStackClient
-
def
newService(dest: Name, label: String): Service[Request, Response]
- Definition Classes
- EndpointerStackClient → Client
-
final
def
newService(dest: String, label: String): Service[Request, Response]
- Definition Classes
- Client
-
final
def
newService(dest: String): Service[Request, Response]
- Definition Classes
- Client
-
def
newSession(handle: PushChannelHandle[ByteReader, Buf]): Future[MuxClientNegotiatingSession]
- Attributes
- protected
- Definition Classes
- Client → PushStackClient
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
params: Params
- Definition Classes
- Client → StackClient → Parameterized
-
final
def
registerTransporter(transporterName: String): Unit
- Attributes
- protected
- Definition Classes
- StackClient
-
val
stack: Stack[ServiceFactory[Request, Response]]
- Definition Classes
- Client → StackClient
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toService(session: MuxClientNegotiatingSession): Future[Service[Request, Response]]
- Attributes
- protected
- Definition Classes
- Client → PushStackClient
-
def
transformed(t: Transformer): StackClient[Request, Response]
- Definition Classes
- StackClient → Transformable
-
def
transformers: Seq[ClientStackTransformer]
- Attributes
- protected
- Definition Classes
- EndpointerStackClient
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
withAdmissionControl: ClientAdmissionControlParams[Client]
- Definition Classes
- WithClientAdmissionControl
-
val
withCompressionPreferences: CompressionParams[Client]
An entry point for configuring the client or server's compression.
An entry point for configuring the client or server's compression.
- Definition Classes
- WithCompressionPreferences
-
def
withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client
- Definition Classes
- CommonParams
-
def
withExecutionOffloaded(executor: ExecutorService): Client
- Definition Classes
- CommonParams
-
def
withExecutionOffloaded(pool: FuturePool): Client
- Definition Classes
- CommonParams
-
def
withLabel(label: String): Client
- Definition Classes
- CommonParams
-
def
withLabels(keywords: String*): Client
- Definition Classes
- CommonParams
-
val
withLoadBalancer: DefaultLoadBalancingParams[Client]
- Definition Classes
- WithDefaultLoadBalancer
-
def
withMonitor(monitor: Monitor): Client
- Definition Classes
- CommonParams
-
def
withNoOpportunisticTls: Client
Disables opportunistic TLS.
Disables opportunistic TLS.
If this is still TLS configured, it will speak mux over TLS. To instead configure this to be
Off, usewithOpportunisticTls(OpportunisticTls.Off).- Definition Classes
- OpportunisticTlsParams
-
def
withOpportunisticTls(level: Level): Client
Configures whether to speak TLS or not.
Configures whether to speak TLS or not.
By default, don't use opportunistic TLS, and instead try to speak mux over TLS if TLS has been configured.
The valid levels are Off, which indicates this will never speak TLS, Desired, which indicates it may speak TLS, but may also not speak TLS, and Required, which indicates it must speak TLS.
Peers that are configured with level
Requiredcannot speak to peers that are configured with levelOff.Note that opportunistic TLS is negotiated in a cleartext handshake, and is incompatible with mux over TLS.
- Definition Classes
- OpportunisticTlsParams
-
def
withParams(params: Params): Client
- Definition Classes
- EndpointerStackClient → StackClient → Parameterized
-
def
withRequestTimeout(timeout: Tunable[Duration]): Client
- Definition Classes
- CommonParams
-
def
withRequestTimeout(timeout: Duration): Client
- Definition Classes
- CommonParams
-
def
withResponseClassifier(responseClassifier: ResponseClassifier): Client
- Definition Classes
- CommonParams
-
def
withRetryBackoff(backoff: Backoff): Client
- Definition Classes
- ClientParams
-
def
withRetryBudget(budget: RetryBudget): Client
- Definition Classes
- ClientParams
-
val
withSession: ClientSessionParams[Client]
- Definition Classes
- WithClientSession
-
val
withSessionQualifier: SessionQualificationParams[Client]
- Definition Classes
- WithSessionQualifier
-
def
withStack(fn: (Stack[ServiceFactory[Request, Response]]) ⇒ Stack[ServiceFactory[Request, Response]]): Client
- Definition Classes
- EndpointerStackClient → StackClient
-
def
withStack(stack: Stack[ServiceFactory[Request, Response]]): Client
- Definition Classes
- EndpointerStackClient → StackClient
-
def
withStatsReceiver(statsReceiver: StatsReceiver): Client
- Definition Classes
- CommonParams
-
def
withTracer(tracer: Tracer): Client
- Definition Classes
- CommonParams
-
val
withTransport: ClientTransportParams[Client]
- Definition Classes
- WithClientTransport
Deprecated Value Members
-
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