public interface RemotingServer extends Configuration, LifeCycle
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Deprecated.
|
String |
ip()
Get the ip of the server.
|
int |
port()
Get the port of the server.
|
void |
registerDefaultExecutor(byte protocolCode,
ExecutorService executor)
Register default executor service for server.
|
void |
registerProcessor(byte protocolCode,
CommandCode commandCode,
RemotingProcessor<?> processor)
Register processor for command with the command code.
|
void |
registerUserProcessor(UserProcessor<?> processor)
Register user processor.
|
boolean |
start()
Deprecated.
|
boolean |
stop()
Deprecated.
|
option, option@Deprecated void init()
@Deprecated boolean start()
@Deprecated boolean stop()
String ip()
int port()
void registerProcessor(byte protocolCode,
CommandCode commandCode,
RemotingProcessor<?> processor)
protocolCode - protocol codecommandCode - command codeprocessor - processorvoid registerDefaultExecutor(byte protocolCode,
ExecutorService executor)
protocolCode - protocol codeexecutor - the executor service for the protocol codevoid registerUserProcessor(UserProcessor<?> processor)
processor - user processor which can be a single-interest processor or a multi-interest processorCopyright © 2024. All rights reserved.