Interface Transport

    • Method Detail

      • asyncRequest

        FutureResponse asyncRequest​(Object command,
                                    ResponseCallback responseCallback)
                             throws IOException
        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.
        Parameters:
        command -
        responseCallback - TODO
        Returns:
        the FutureResponse
        Throws:
        IOException
      • narrow

        <T> T narrow​(Class<T> target)
        Parameters:
        target -
        Returns:
        the target
      • isFaultTolerant

        boolean isFaultTolerant()
        Indicates if the transport can handle faults
        Returns:
        true if fault tolerant
      • isDisposed

        boolean isDisposed()
        Returns:
        true if the transport is disposed
      • isConnected

        boolean isConnected()
        Returns:
        true if the transport is connected
      • updateURIs

        void updateURIs​(boolean rebalance,
                        URI[] uris)
                 throws IOException
        Provide a list of available alternative locations
        Parameters:
        rebalance -
        uris -
        Throws:
        IOException
      • getReceiveCounter

        int getReceiveCounter()
        Returns a counter which gets incremented as data is read from the transport. It should only be used to determine if there is progress being made in reading the next command from the transport. The value may wrap into the negative numbers.
        Returns:
        a counter which gets incremented as data is read from the transport.
      • setPeerCertificates

        void setPeerCertificates​(X509Certificate[] certificates)
        Sets the certificates provided by the connected peer.
        Parameters:
        certificates - the Certificates provided by the peer.
      • getWireFormat

        WireFormat getWireFormat()
        Retrieves the WireFormat instance associated with this Transport instance.
        Returns:
        the WireFormat in use.