| Constructor and Description |
|---|
BoltRpcServer(com.alipay.remoting.rpc.RpcServer rpcServer) |
| Modifier and Type | Method and Description |
|---|---|
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 boolean init(Void opts)
Lifecyclepublic void shutdown()
Lifecyclepublic void registerConnectionClosedEventListener(ConnectionClosedEventListener listener)
RpcServerregisterConnectionClosedEventListener in interface RpcServerlistener - the event listener.public void registerProcessor(RpcProcessor processor)
RpcServerregisterProcessor in interface RpcServerprocessor - the user processor which has a interestpublic com.alipay.remoting.rpc.RpcServer getServer()
Copyright © 2024. All rights reserved.