public class Config extends Object
| 构造器和说明 |
|---|
Config() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getAsynchronousCorePoolSize() |
int |
getAsynchronousMaximumPoolSize() |
int |
getAsynchronousPoolKeepAliveTime() |
String |
getClientName() |
Decoder |
getDecoder() |
Encoder |
getEncoder() |
Handler |
getHandler() |
String |
getServerName() |
int |
getTimeout()
The max I/O idle time, the default value is 10 seconds.
|
void |
setAsynchronousCorePoolSize(int asynchronousCorePoolSize) |
void |
setAsynchronousMaximumPoolSize(int asynchronousMaximumPoolSize) |
void |
setAsynchronousPoolKeepAliveTime(int asynchronousPoolKeepAliveTime) |
void |
setClientName(String clientName) |
void |
setDecoder(Decoder decoder) |
void |
setEncoder(Encoder encoder) |
void |
setHandler(Handler handler) |
void |
setServerName(String serverName) |
void |
setTimeout(int timeout)
The I/O timeout, if the last I/O timestamp before present over timeout
value, the session will close.
|
String |
toString() |
public int getTimeout()
public void setTimeout(int timeout)
timeout - the max I/O idle time,the unit is MS.public String getServerName()
public void setServerName(String serverName)
public String getClientName()
public void setClientName(String clientName)
public Decoder getDecoder()
public void setDecoder(Decoder decoder)
public Encoder getEncoder()
public void setEncoder(Encoder encoder)
public Handler getHandler()
public void setHandler(Handler handler)
public int getAsynchronousMaximumPoolSize()
public void setAsynchronousMaximumPoolSize(int asynchronousMaximumPoolSize)
public int getAsynchronousCorePoolSize()
public void setAsynchronousCorePoolSize(int asynchronousCorePoolSize)
public int getAsynchronousPoolKeepAliveTime()
public void setAsynchronousPoolKeepAliveTime(int asynchronousPoolKeepAliveTime)
Copyright © 2016. All rights reserved.