public class SocketServerSettings extends Object
| Constructor and Description |
|---|
SocketServerSettings()
Creates a default set of socket parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxActiveRequests()
Gets the maximum number of concurrent requests that can be processed by the server at any give time.
|
int |
getMaxConnectionBacklog()
Gets the maximum number of connections that are in the IP socket accept backlog.
|
int |
getMaxOutstandingAccepts()
Gets the maximum number of requests that can be accepted by the server, but not yet
committed to a processing thread.
|
int |
getReadBufferSize()
Gets the maximum size request buffer size in bytes.
|
int |
getReceiveTimeout()
Gets the socket timeout in milliseconds for receiving or reading request.
|
int |
getSendTimeout()
Gets the socket timeout in milliseconds for sending responses.
|
int |
getSocketCloseTimeout()
Gets the timeout in milliseconds for closing a socket connection.
|
void |
setMaxActiveRequests(int maxActiveRequests)
Sets the maximum number of concurrent requests that can be processed by the server at any give time.
|
void |
setMaxConnectionBacklog(int maxConnectionBacklog)
Sets the maximum number of connections that are in the IP socket accept backlog.
|
void |
setMaxOutstandingAccepts(int maxOutstandingAccepts)
Sets the maximum number of requests that can be accepted by the server, but not yet
committed to a processing thread.
|
void |
setReadBufferSize(int readBufferSize)
Sets the maximum size request buffer size in bytes.
|
void |
setReceiveTimeout(int receiveTimeout)
Sets the socket timeout in milliseconds for receiving or reading request.
|
void |
setSendTimeout(int sendTimeout)
Sets the socket timeout in milliseconds for sending responses.
|
void |
setSocketCloseTimeout(int socketCloseTimeout)
Sets the timeout in milliseconds for closing a socket connection.
|
public SocketServerSettings()
public int getMaxOutstandingAccepts()
public void setMaxOutstandingAccepts(int maxOutstandingAccepts)
maxOutstandingAccepts - The maximum number of requests that can be accepted by the server, but not yet
committed to a processing thread.public int getMaxActiveRequests()
public void setMaxActiveRequests(int maxActiveRequests)
maxActiveRequests - The maximum number of concurrent requests that can be processed by the server at any give time.public int getMaxConnectionBacklog()
public void setMaxConnectionBacklog(int maxConnectionBacklog)
maxConnectionBacklog - The maximum number of connections that are in the IP socket accept backlog.public int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
readBufferSize - The maximum size request buffer size in bytes.public int getSendTimeout()
public void setSendTimeout(int sendTimeout)
sendTimeout - Sets the socket timeout in milliseconds for sending responses.public int getReceiveTimeout()
public void setReceiveTimeout(int receiveTimeout)
receiveTimeout - The socket timeout in milliseconds for receiving or reading request.public int getSocketCloseTimeout()
public void setSocketCloseTimeout(int socketCloseTimeout)
socketCloseTimeout - The timeout in milliseconds for closing a socket connection.Copyright © 2010-2015 The Direct Project. All Rights Reserved.