Closes the mapped transport, and prevents future updates to the underlying transport.
Closes the mapped transport, and prevents future updates to the underlying transport.
Changes the underlying
transport to be newTrans
unless it's closing or
closed.
Changes the underlying
transport to be newTrans
unless it's closing or
closed.
Note that this changes the original transport that was passed in the constructor, it doesn't act on the last transport the RefTransport was updated to.
true if it succeeded in changing the underlying transport, false otherwise
(Since version 2017-08-21) Please use Transport.context.localAddress instead
(Since version 2017-08-21) Please use Transport.context.remoteAddress instead
A com.twitter.finagle.transport.Transport that proxies another transport, which can be swapped out for other transports.
Transport typically represents a single connection, and it's important that this remains true, even though the details of how that connection behaves may change when the underlying transport changes.