Module 

Class AssembledConnectedChannel

    • Constructor Detail

      • AssembledConnectedChannel

        public AssembledConnectedChannel​(SuspendableReadChannel readChannel,
                                         SuspendableWriteChannel writeChannel)
        Construct a new instance. At least one of the channels must be an instance of ConnectedChannel.
        Parameters:
        readChannel - the read channel
        writeChannel - the write channel
    • Method Detail

      • getPeerAddress

        public java.net.SocketAddress getPeerAddress()
        Description copied from interface: ConnectedChannel
        Get the peer address of this channel.
        Specified by:
        getPeerAddress in interface ConnectedChannel
        Returns:
        the peer address
      • getPeerAddress

        public <A extends java.net.SocketAddress> A getPeerAddress​(java.lang.Class<A> type)
        Description copied from interface: ConnectedChannel
        Get the peer address of a given type, or null if the address is not of that type.
        Specified by:
        getPeerAddress in interface ConnectedChannel
        Parameters:
        type - the address type class
        Returns:
        the peer address, or null if unknown
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
        Description copied from interface: BoundChannel
        Get the local address that this channel is bound to.
        Specified by:
        getLocalAddress in interface BoundChannel
        Returns:
        the local address
      • getLocalAddress

        public <A extends java.net.SocketAddress> A getLocalAddress​(java.lang.Class<A> type)
        Description copied from interface: BoundChannel
        Get the local address of a given type, or null if the address is not of that type.
        Specified by:
        getLocalAddress in interface BoundChannel
        Type Parameters:
        A - the address type
        Parameters:
        type - the address type class
        Returns:
        the local address, or null if unknown