public class SocketConfig extends Object implements Serializable
Constructor and Description |
---|
SocketConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getReadBufferSize()
获取读取缓存大小
|
long |
getReadTimeout()
获取读取超时时长,小于等于0表示默认
|
int |
getThreadPoolSize()
获取共享线程池大小,此线程池用于接收和处理用户连接
|
int |
getWriteBufferSize()
获取写出缓存大小
|
long |
getWriteTimeout()
获取写出超时时长,小于等于0表示默认
|
void |
setReadBufferSize(int readBufferSize)
设置读取缓存大小
|
void |
setReadTimeout(long readTimeout)
设置读取超时时长,小于等于0表示默认
|
void |
setThreadPoolSize(int threadPoolSize)
设置共享线程池大小,此线程池用于接收和处理用户连接
|
void |
setWriteBufferSize(int writeBufferSize)
设置写出缓存大小
|
void |
setWriteTimeout(long writeTimeout)
设置写出超时时长,小于等于0表示默认
|
public int getThreadPoolSize()
public void setThreadPoolSize(int threadPoolSize)
threadPoolSize
- 共享线程池大小,此线程池用于接收和处理用户连接public long getReadTimeout()
public void setReadTimeout(long readTimeout)
readTimeout
- 读取超时时长,小于等于0表示默认public long getWriteTimeout()
public void setWriteTimeout(long writeTimeout)
writeTimeout
- 写出超时时长,小于等于0表示默认public int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
readBufferSize
- 读取缓存大小public int getWriteBufferSize()
public void setWriteBufferSize(int writeBufferSize)
writeBufferSize
- 写出缓存大小Copyright © 2024. All rights reserved.