com.alibaba.dubbo.remoting.transport
Class AbstractChannel

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.AbstractPeer
      extended by com.alibaba.dubbo.remoting.transport.AbstractChannel
All Implemented Interfaces:
Channel, ChannelHandler, Endpoint

public abstract class AbstractChannel
extends AbstractPeer
implements Channel

AbstractChannel

Author:
william.liangf

Constructor Summary
AbstractChannel(URL url, ChannelHandler handler)
           
 
Method Summary
 void send(Object message, boolean sent)
          send message.
 String toString()
           
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractPeer
caught, close, close, connected, disconnected, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.alibaba.dubbo.remoting.Channel
getAttribute, getRemoteAddress, hasAttribute, isConnected, removeAttribute, setAttribute
 
Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint
close, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, startClose
 

Constructor Detail

AbstractChannel

public AbstractChannel(URL url,
                       ChannelHandler handler)
Method Detail

send

public void send(Object message,
                 boolean sent)
          throws RemotingException
Description copied from interface: Endpoint
send message.

Specified by:
send in interface Endpoint
sent - 是否已发送完成
Throws:
RemotingException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012–2017 Alibaba. All rights reserved.