Package io.grpc.netty

Class ClientTransportLifecycleManager


  • final class ClientTransportLifecycleManager
    extends java.lang.Object
    Maintainer of transport lifecycle status.
    • Field Detail

      • transportReady

        private boolean transportReady
      • transportShutdown

        private boolean transportShutdown
      • transportInUse

        private boolean transportInUse
      • shutdownStatus

        private Status shutdownStatus
        null iff !transportShutdown.
      • shutdownThrowable

        private java.lang.Throwable shutdownThrowable
        null iff !transportShutdown.
      • transportTerminated

        private boolean transportTerminated
    • Method Detail

      • 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 java.lang.Throwable getShutdownThrowable()