object Transport
A collection of com.twitter.finagle.Stack.Param's useful for configuring a com.twitter.finagle.transport.Transport.
- Alphabetic
- By Inheritance
- Transport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class BufferSizes(send: Option[Int], recv: Option[Int]) extends Product with Serializable
$param the buffer sizes of a
Transport
.$param the buffer sizes of a
Transport
.- send
An option indicating the size of the send buffer. If None, the implementation default is used.
- recv
An option indicating the size of the receive buffer. If None, the implementation default is used.
- case class ClientSsl(sslClientConfiguration: Option[SslClientConfiguration]) extends Product with Serializable
$param the SSL/TLS client configuration for a
Transport
. - case class Liveness(readTimeout: Duration, writeTimeout: Duration, keepAlive: Option[Boolean]) extends Product with Serializable
$param the liveness of a
Transport
.$param the liveness of a
Transport
. These properties dictate the lifecycle of aTransport
and ensure that it remains relevant.- readTimeout
A maximum duration a listener is allowed to read a request.
- writeTimeout
A maximum duration a listener is allowed to write a response.
- keepAlive
An option indicating if the keepAlive is on or off. If None, the implementation default is used.
- case class Options(noDelay: Boolean, reuseAddr: Boolean, reusePort: Boolean) extends Product with Serializable
$param the options (i.e., socket options) of a
Transport
.$param the options (i.e., socket options) of a
Transport
.- noDelay
enables or disables
TCP_NODELAY
(Nagle's algorithm) option on a transport socket (noDelay = true
means disabled). Default istrue
(disabled).- reuseAddr
enables or disables
SO_REUSEADDR
option on a transport socket. Default istrue
.- reusePort
enables or disables
SO_REUSEPORT
option on a transport socket (Linux 3.9+ only). This option is only available when using finagle-netty4 and native epoll support is enabled. Default isfalse
.
- case class ServerSsl(sslServerConfiguration: Option[SslServerConfiguration]) extends Product with Serializable
$param the SSL/TLS server configuration for a
Transport
. - case class Verbose(enabled: Boolean) extends Product with Serializable
$param the verbosity of a
Transport
.$param the verbosity of a
Transport
. Transport activity is written to com.twitter.finagle.param.Logger.
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 cast[In1, Out1](cls: Class[Out1], trans: Transport[Any, Any]): Transport[In1, Out1]
Casts an object transport to
Transport[In1, Out1]
.Casts an object transport to
Transport[In1, Out1]
. Note that this is generally unsafe: only do this when you know the cast is guaranteed safe. This is useful when coercing a netty object pipeline into a typed transport, for example.- See also
Transport.cast(trans) for Scala users.
- def cast[In1, Out1](trans: Transport[Any, Any])(implicit m: Manifest[Out1]): Transport[In1, Out1]
Casts an object transport to
Transport[In1, Out1]
.Casts an object transport to
Transport[In1, Out1]
. Note that this is generally unsafe: only do this when you know the cast is guaranteed safe. This is useful when coercing a netty object pipeline into a typed transport, for example.- See also
transport) for Java users.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def peerCertificate: Option[Certificate]
Retrieve the peer certificate of the Transport, if one exists.
- def sslSessionInfo: SslSessionInfo
Retrieve the Transport's SslSessionInfo from com.twitter.finagle.context.Contexts.local if available.
Retrieve the Transport's SslSessionInfo from com.twitter.finagle.context.Contexts.local if available. If none exists, a NullSslSessionInfo is returned instead.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object BufferSizes extends Serializable
- object ClientSsl extends Serializable
- object Liveness extends Serializable
- object Options extends Serializable
- object ServerSsl extends Serializable
- object Verbose extends Serializable