com.alibaba.dubbo.rpc.protocol
Class AbstractProtocol

java.lang.Object
  extended by com.alibaba.dubbo.rpc.protocol.AbstractProtocol
All Implemented Interfaces:
Protocol
Direct Known Subclasses:
AbstractProxyProtocol, DubboProtocol, InjvmProtocol, MemcachedProtocol, MockProtocol, RedisProtocol, ThriftProtocol

public abstract class AbstractProtocol
extends Object
implements Protocol

abstract ProtocolSupport.

Author:
qian.lei, william.liangf

Constructor Summary
AbstractProtocol()
           
 
Method Summary
 void destroy()
          释放协议:
1.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alibaba.dubbo.rpc.Protocol
export, getDefaultPort, refer
 

Constructor Detail

AbstractProtocol

public AbstractProtocol()
Method Detail

destroy

public void destroy()
Description copied from interface: Protocol
释放协议:
1. 取消该协议所有已经暴露和引用的服务。
2. 释放协议所占用的所有资源,比如连接和端口。
3. 协议在释放后,依然能暴露和引用新的服务。

Specified by:
destroy in interface Protocol


Copyright © 2012–2017 Alibaba. All rights reserved.