@ExperimentalApi public abstract class TransportManager<T> extends Object
Constructor and Description |
---|
TransportManager() |
Modifier and Type | Method and Description |
---|---|
abstract ListenableFuture<T> |
getTransport(EquivalentAddressGroup addressGroup)
Returns the future of a transport for any of the addresses from the given address group.
|
abstract Channel |
makeChannel(T transport)
Returns a channel that uses
transport ; useful for issuing RPCs on a transport. |
abstract void |
updateRetainedTransports(Collection<EquivalentAddressGroup> addrs)
Advises this
TransportManager to retain transports only to these servers, for warming
up connections and discarding unused connections. |
public abstract void updateRetainedTransports(Collection<EquivalentAddressGroup> addrs)
TransportManager
to retain transports only to these servers, for warming
up connections and discarding unused connections.public abstract ListenableFuture<T> getTransport(EquivalentAddressGroup addressGroup)
If the channel has been shut down, the value of the future will be null
.
Cancelling the returned future has no effect. The future will never fail. If the channel has
been shut down, the value of the future will be null
.