Package io.grpc.netty
Class ClientTransportLifecycleManager
java.lang.Object
io.grpc.netty.ClientTransportLifecycleManager
Maintainer of transport lifecycle status.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ManagedClientTransport.Listener
private Status
null iff !transportShutdown.private Throwable
null iff !transportShutdown.private boolean
private boolean
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterAttributes
(Attributes attributes) void
Marks transport as shutdown, but does not set the error status.void
notifyInUse
(boolean inUse) void
boolean
Returnstrue
if was the first shutdown.void
-
Field Details
-
listener
-
transportReady
private boolean transportReady -
transportShutdown
private boolean transportShutdown -
transportInUse
private boolean transportInUse -
shutdownStatus
null iff !transportShutdown. -
shutdownThrowable
null iff !transportShutdown. -
transportTerminated
private boolean transportTerminated
-
-
Constructor Details
-
ClientTransportLifecycleManager
-
-
Method Details
-
filterAttributes
-
notifyReady
public void notifyReady() -
notifyGracefulShutdown
Marks transport as shutdown, but does not set the error status. This must eventually be followed by a call to notifyShutdown. -
notifyShutdown
Returnstrue
if was the first shutdown. -
notifyInUse
public void notifyInUse(boolean inUse) -
notifyTerminated
-
getShutdownStatus
-
getShutdownThrowable
-