public abstract class ServerChannel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ChannelHandler |
channelHandler |
protected Logger |
logger |
protected LoggerFactory |
loggerFactory |
protected int |
maxIdleTimeSeconds |
protected int |
port |
| Constructor and Description |
|---|
ServerChannel(LoggerFactory factory,
int port) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
run() |
void |
setChannelHandler(ChannelHandler channelHandler) |
void |
setMaxIdleTimeSeconds(int value) |
abstract void |
stop() |
protected LoggerFactory loggerFactory
protected Logger logger
protected ChannelHandler channelHandler
protected int port
protected int maxIdleTimeSeconds
public ServerChannel(LoggerFactory factory, int port)
public void setMaxIdleTimeSeconds(int value)
public void setChannelHandler(ChannelHandler channelHandler)
public abstract void run()
public abstract void stop()
Copyright © 2021. All rights reserved.