public abstract class AbstractRemotingEndpoint extends Object implements RemotingEndpoint
| 构造器和说明 |
|---|
AbstractRemotingEndpoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract RemotingChannelHolder |
doStart(RemotingConfiguration config) |
protected abstract void |
doStop() |
String |
getId()
获取唯一ID
|
boolean |
isStart()
是否启动
|
RemotingChannelHolder |
start(RemotingConfiguration config)
启动远程
|
void |
stop()
停止
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetchannel, getRemotingType, isActive, isOpenpublic String getId()
RemotingEndpointgetId 在接口中 RemotingEndpointpublic RemotingChannelHolder start(RemotingConfiguration config) throws RpcRemotingException
RemotingEndpointstart 在接口中 RemotingEndpointconfig - 配置消息RpcRemotingException - 启动失败会抛异常public void stop()
RemotingEndpointstop 在接口中 RemotingEndpointpublic boolean isStart()
RemotingEndpointisStart 在接口中 RemotingEndpointprotected abstract RemotingChannelHolder doStart(RemotingConfiguration config) throws RpcRemotingException
protected abstract void doStop()
throws RpcRemotingException
Copyright © 2020. All rights reserved.