Class ForwardingConnectionClientTransport

    • Constructor Detail

      • ForwardingConnectionClientTransport

        ForwardingConnectionClientTransport()
    • Method Detail

      • start

        public java.lang.Runnable start​(ManagedClientTransport.Listener listener)
        Description copied from interface: ManagedClientTransport
        Starts transport. This method may only be called once.

        This method and the returned Runnable should not throw any exceptions.

        Specified by:
        start in interface ManagedClientTransport
        Parameters:
        listener - non-null listener of transport events
        Returns:
        a Runnable that is executed after-the-fact by the original caller, typically after locks are released
      • shutdownNow

        public void shutdownNow​(Status status)
        Description copied from interface: ManagedClientTransport
        Initiates a forceful shutdown in which preexisting and new calls are closed. Existing calls should be closed with the provided reason.
        Specified by:
        shutdownNow in interface ManagedClientTransport
      • ping

        public void ping​(ClientTransport.PingCallback callback,
                         java.util.concurrent.Executor executor)
        Description copied from interface: ClientTransport
        Pings a remote endpoint. When an acknowledgement is received, the given callback will be invoked using the given executor.

        Pings are not necessarily sent to the same endpoint, thus a successful ping only means at least one endpoint responded, but doesn't imply the availability of other endpoints (if there is any).

        This is an optional method. Transports that do not have any mechanism by which to ping the remote endpoint may throw UnsupportedOperationException.

        Specified by:
        ping in interface ClientTransport
      • getLogId

        public InternalLogId getLogId()
        Description copied from interface: InternalWithLogId
        Returns an ID that is primarily used in debug logs. It usually contains the class name and a numeric ID that is unique among the instances.

        The subclasses of this interface usually want to include the log ID in their Object.toString() results.

        Specified by:
        getLogId in interface InternalWithLogId
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object