public static interface ManagedClientTransport.Listener
Modifier and Type | Method and Description |
---|---|
void |
transportInUse(boolean inUse)
Called whenever the transport's in-use state has changed.
|
void |
transportReady()
The transport is ready to accept traffic, because the connection is established.
|
void |
transportShutdown(Status s)
The transport is shutting down.
|
void |
transportTerminated()
The transport completed shutting down.
|
void transportShutdown(Status s)
ClientTransport.newStream(io.grpc.MethodDescriptor<?, ?>, io.grpc.Metadata, io.grpc.CallOptions)
as
long as it doesn't own the new streams. Shutdown could have been caused by an error or normal
operation. It is possible that this method is called without ManagedClientTransport.shutdown(io.grpc.Status)
being called.
This is called exactly once, and must be called prior to transportTerminated()
.
s
- the reason for the shutdown.void transportTerminated()
ClientTransport.newStream(io.grpc.MethodDescriptor<?, ?>, io.grpc.Metadata, io.grpc.CallOptions)
as long as it doesn't own the new streams.
This is called exactly once, and must be called after transportShutdown(io.grpc.Status)
has been
called.
void transportReady()
void transportInUse(boolean inUse)
Copyright © 2019. All rights reserved.