public abstract class BaseRpcServer
extends java.lang.Object
| 构造器和说明 |
|---|
BaseRpcServer() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract ConnectionType |
getConnectionType()
get connection type.
|
int |
getServicePort()
get service port.
|
abstract int |
rpcPortOffset()
the increase offset of nacos server port for rpc server port.
|
abstract void |
shutdownServer()
the increase offset of nacos server port for rpc server port.
|
void |
start()
Start sever.
|
abstract void |
startServer()
Start sever.
|
void |
stopServer()
Stop Server.
|
@PostConstruct
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic abstract ConnectionType getConnectionType()
public abstract void startServer()
throws java.lang.Exception
java.lang.Exception - exception throw if start server fail.public abstract int rpcPortOffset()
public int getServicePort()
public final void stopServer()
throws java.lang.Exception
java.lang.Exception - throw if stop server fail.@PreDestroy public abstract void shutdownServer()
Copyright © 2018–2022 Alibaba Group. All rights reserved.