public class SimpleTcpServer
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
boundPort |
|
static org.slf4j.Logger |
LOG |
|
protected int |
port |
|
protected io.netty.channel.ChannelInboundHandlerAdapter |
rpcProgram |
|
protected int |
workerCount |
The maximum number of I/O worker threads
|
| Constructor | Description |
|---|---|
SimpleTcpServer(int port,
RpcProgram program,
int workercount) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getBoundPort() |
|
void |
run() |
|
void |
shutdown() |
public static final org.slf4j.Logger LOG
protected final int port
protected int boundPort
protected final io.netty.channel.ChannelInboundHandlerAdapter rpcProgram
protected final int workerCount
public SimpleTcpServer(int port,
RpcProgram program,
int workercount)
port - TCP port where to start the server atprogram - RPC program corresponding to the serverworkercount - Number of worker threadsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.