Interface Channel

All Superinterfaces:
Endpoint
All Known Subinterfaces:
Client, ExchangeChannel, ExchangeClient
All Known Implementing Classes:
AbstractChannel, AbstractClient, AbstractConnectionClient, ChannelDelegate, ClientDelegate, HeaderExchangeClient

public interface Channel extends Endpoint
Channel. (API/SPI, Prototype, ThreadSafe)
See Also:
  • Method Details

    • getRemoteAddress

      InetSocketAddress getRemoteAddress()
      get remote address.
      Returns:
      remote address.
    • isConnected

      boolean isConnected()
      is connected.
      Returns:
      connected
    • hasAttribute

      boolean hasAttribute(String key)
      has attribute.
      Parameters:
      key - key.
      Returns:
      has or has not.
    • getAttribute

      Object getAttribute(String key)
      get attribute.
      Parameters:
      key - key.
      Returns:
      value.
    • setAttribute

      void setAttribute(String key, Object value)
      set attribute.
      Parameters:
      key - key.
      value - value.
    • removeAttribute

      void removeAttribute(String key)
      remove attribute.
      Parameters:
      key - key.