public static interface TransportManager.InterimTransport<T>
Modifier and Type | Method and Description |
---|---|
void |
closeWithError(Status error)
Closes the interim transport by failing all pending RPCs with the given error.
|
void |
closeWithRealTransports(Supplier<T> realTransports)
Closes the interim transport by transferring pending RPCs to the given real transports.
|
T |
transport()
Returns the transport object.
|
T transport()
IllegalStateException
- if closeWithRealTransports(com.google.common.base.Supplier<T>)
or closeWithError(io.grpc.Status)
has been calledvoid closeWithRealTransports(Supplier<T> realTransports)
Each pending RPC will result in an invocation to Supplier.get()
once.
void closeWithError(Status error)