class StatsTransport[In, Out] extends TransportProxy[In, Out]
A TransportProxy that collects stats on read/write operations for underlying
.
- Alphabetic
- By Inheritance
- StatsTransport
- TransportProxy
- TransportProxyWithoutContext
- Transport
- Closable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StatsTransport(underlying: Transport[In, Out], exceptionRecorder: ExceptionStatsHandler, statsReceiver: StatsReceiver)
Type Members
- type Context = Transport.Context
- Definition Classes
- TransportProxy → Transport
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(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(deadline: Time): Future[Unit]
- Definition Classes
- TransportProxyWithoutContext → Closable
- def close(after: Duration): Future[Unit]
- Definition Classes
- Closable
- final def close(): Future[Unit]
- Definition Classes
- Closable
- def context: Context
The control panel for the Transport.
The control panel for the Transport.
- Definition Classes
- TransportProxy → Transport
- 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
- def map[In1, Out1](f: (In1) => In, g: (Out) => Out1): Transport[In1, Out1]
Maps this transport to
Transport[In1, Out2]
.Maps this transport to
Transport[In1, Out2]
. Note, exceptions inf
andg
are lifted to a com.twitter.util.Future.- f
The function applied to
write
s input.- g
The function applied to the result of a
read
- Definition Classes
- Transport
- def mapContext[Ctx1 <: TransportContext](f: (Context) => Ctx1): Transport[In, Out] { type Context <: Ctx1 }
Maps the context of this transport to a new context.
Maps the context of this transport to a new context.
- f
A function to provide a new context
- Definition Classes
- Transport
- 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 onClose: Future[Throwable]
The channel closed with the given exception.
The channel closed with the given exception. This is the same exception you would get if attempting to read or write on the Transport, but this allows clients to listen to close events.
- Definition Classes
- TransportProxyWithoutContext → Transport
- def read(): Future[Out]
Read a message from the transport.
Read a message from the transport.
- Definition Classes
- StatsTransport → Transport
- val self: Transport[In, Out]
- Definition Classes
- TransportProxy
- def status: Status
The status of this transport; see com.twitter.finagle.Status for status definitions.
The status of this transport; see com.twitter.finagle.Status for status definitions.
- Definition Classes
- TransportProxyWithoutContext → Transport
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- TransportProxyWithoutContext → 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()
- def write(in: In): Future[Unit]
Write
req
to this transport; the returned future acknowledges write completion.Write
req
to this transport; the returned future acknowledges write completion.- Definition Classes
- StatsTransport → Transport
Deprecated Value Members
- final def localAddress: SocketAddress
The locally bound address of this transport.
The locally bound address of this transport.
- Definition Classes
- Transport
- Annotations
- @deprecated
- Deprecated
(Since version 2017-08-21) Please use Transport.context.localAddress instead
- final def remoteAddress: SocketAddress
The remote address to which the transport is connected.
The remote address to which the transport is connected.
- Definition Classes
- Transport
- Annotations
- @deprecated
- Deprecated
(Since version 2017-08-21) Please use Transport.context.remoteAddress instead