@ExperimentalApi public abstract class TransportManager extends Object
| Constructor and Description |
|---|
TransportManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract ListenableFuture<io.grpc.internal.ClientTransport> |
getTransport(EquivalentAddressGroup addressGroup)
Returns the future of a transport for any of the addresses from the given address group.
|
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<io.grpc.internal.ClientTransport> 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.