Class TransportSupport

    • Constructor Detail

      • TransportSupport

        public TransportSupport()
    • Method Detail

      • narrow

        public <T> T narrow​(Class<T> target)
        narrow acceptance
        Specified by:
        narrow in interface Transport
        Parameters:
        target -
        Returns:
        'this' if assignable
      • asyncRequest

        public FutureResponse asyncRequest​(Object command,
                                           ResponseCallback responseCallback)
                                    throws IOException
        Description copied from interface: Transport
        An asynchronous request response where the Receipt will be returned in the future. If responseCallback is not null, then it will be called when the response has been completed.
        Specified by:
        asyncRequest in interface Transport
        responseCallback - TODO
        Returns:
        the FutureResponse
        Throws:
        IOException
      • doConsume

        public void doConsume​(Object command)
        Process the inbound command
      • onException

        public void onException​(IOException e)
        Passes any IO exceptions into the transport listener
      • isFaultTolerant

        public boolean isFaultTolerant()
        Description copied from interface: Transport
        Indicates if the transport can handle faults
        Specified by:
        isFaultTolerant in interface Transport
        Returns:
        true if fault tolerant
      • isReconnectSupported

        public boolean isReconnectSupported()
        Specified by:
        isReconnectSupported in interface Transport
        Returns:
        true if reconnect is supported
      • isUpdateURIsSupported

        public boolean isUpdateURIsSupported()
        Specified by:
        isUpdateURIsSupported in interface Transport
        Returns:
        true if updating uris is supported
      • isDisposed

        public boolean isDisposed()
        Specified by:
        isDisposed in interface Transport
        Returns:
        true if the transport is disposed
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface Transport
        Returns:
        true if the transport is connected