Package io.grpc.netty

Class ClientTransportLifecycleManager

java.lang.Object
io.grpc.netty.ClientTransportLifecycleManager

final class ClientTransportLifecycleManager extends Object
Maintainer of transport lifecycle status.
  • Field Details

    • listener

      private final ManagedClientTransport.Listener listener
    • transportReady

      private boolean transportReady
    • transportShutdown

      private boolean transportShutdown
    • transportInUse

      private boolean transportInUse
    • shutdownStatus

      private Status shutdownStatus
      null iff !transportShutdown.
    • shutdownThrowable

      private Throwable shutdownThrowable
      null iff !transportShutdown.
    • transportTerminated

      private boolean transportTerminated
  • Constructor Details

  • Method Details

    • filterAttributes

      public Attributes filterAttributes(Attributes attributes)
    • notifyReady

      public void notifyReady()
    • notifyGracefulShutdown

      public void notifyGracefulShutdown(Status s)
      Marks transport as shutdown, but does not set the error status. This must eventually be followed by a call to notifyShutdown.
    • notifyShutdown

      @CanIgnoreReturnValue public boolean notifyShutdown(Status s)
      Returns true if was the first shutdown.
    • notifyInUse

      public void notifyInUse(boolean inUse)
    • notifyTerminated

      public void notifyTerminated(Status s)
    • getShutdownStatus

      public Status getShutdownStatus()
    • getShutdownThrowable

      public Throwable getShutdownThrowable()