Class ChannelDelegate

java.lang.Object
org.apache.dubbo.remoting.transport.ChannelDelegate
All Implemented Interfaces:
Channel, Endpoint

public class ChannelDelegate extends Object implements Channel
ChannelDelegate
  • Constructor Details

    • ChannelDelegate

      public ChannelDelegate()
    • ChannelDelegate

      public ChannelDelegate(Channel channel)
  • Method Details

    • getChannel

      public Channel getChannel()
    • setChannel

      public void setChannel(Channel channel)
    • getUrl

      public URL getUrl()
      Description copied from interface: Endpoint
      get url.
      Specified by:
      getUrl in interface Endpoint
      Returns:
      url
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Description copied from interface: Channel
      get remote address.
      Specified by:
      getRemoteAddress in interface Channel
      Returns:
      remote address.
    • getChannelHandler

      public ChannelHandler getChannelHandler()
      Description copied from interface: Endpoint
      get channel handler.
      Specified by:
      getChannelHandler in interface Endpoint
      Returns:
      channel handler
    • isConnected

      public boolean isConnected()
      Description copied from interface: Channel
      is connected.
      Specified by:
      isConnected in interface Channel
      Returns:
      connected
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Description copied from interface: Endpoint
      get local address.
      Specified by:
      getLocalAddress in interface Endpoint
      Returns:
      local address.
    • hasAttribute

      public boolean hasAttribute(String key)
      Description copied from interface: Channel
      has attribute.
      Specified by:
      hasAttribute in interface Channel
      Parameters:
      key - key.
      Returns:
      has or has not.
    • send

      public void send(Object message) throws RemotingException
      Description copied from interface: Endpoint
      send message.
      Specified by:
      send in interface Endpoint
      Parameters:
      message -
      Throws:
      RemotingException
    • getAttribute

      public Object getAttribute(String key)
      Description copied from interface: Channel
      get attribute.
      Specified by:
      getAttribute in interface Channel
      Parameters:
      key - key.
      Returns:
      value.
    • setAttribute

      public void setAttribute(String key, Object value)
      Description copied from interface: Channel
      set attribute.
      Specified by:
      setAttribute in interface Channel
      Parameters:
      key - key.
      value - value.
    • send

      public void send(Object message, boolean sent) throws RemotingException
      Description copied from interface: Endpoint
      send message.
      Specified by:
      send in interface Endpoint
      Parameters:
      message -
      sent - already sent to socket?
      Throws:
      RemotingException
    • removeAttribute

      public void removeAttribute(String key)
      Description copied from interface: Channel
      remove attribute.
      Specified by:
      removeAttribute in interface Channel
      Parameters:
      key - key.
    • close

      public void close()
      Description copied from interface: Endpoint
      close the channel.
      Specified by:
      close in interface Endpoint
    • close

      public void close(int timeout)
      Description copied from interface: Endpoint
      Graceful close the channel.
      Specified by:
      close in interface Endpoint
    • startClose

      public void startClose()
      Specified by:
      startClose in interface Endpoint
    • isClosed

      public boolean isClosed()
      Description copied from interface: Endpoint
      is closed.
      Specified by:
      isClosed in interface Endpoint
      Returns:
      closed