| 构造器和说明 |
|---|
BoltRpcServer(com.alipay.remoting.rpc.RpcServer rpcServer) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
boundPort() |
com.alipay.remoting.rpc.RpcServer |
getServer() |
boolean |
init(Void opts)
Initialize the service.
|
void |
registerConnectionClosedEventListener(ConnectionClosedEventListener listener)
Register a conn closed event listener.
|
void |
registerProcessor(RpcProcessor processor)
Register user processor.
|
void |
shutdown()
Dispose the resources for service.
|
public void shutdown()
Lifecyclepublic void registerConnectionClosedEventListener(ConnectionClosedEventListener listener)
RpcServerregisterConnectionClosedEventListener 在接口中 RpcServerlistener - the event listener.public void registerProcessor(RpcProcessor processor)
RpcServerregisterProcessor 在接口中 RpcServerprocessor - the user processor which has a interestpublic com.alipay.remoting.rpc.RpcServer getServer()
Copyright © 2021. All rights reserved.