public class StreamServerConfigurationImpl extends Object implements StreamServerConfiguration
Constructor and Description |
---|
StreamServerConfigurationImpl()
Defaults to port '0', ephemeral.
|
StreamServerConfigurationImpl(int listenPort) |
Modifier and Type | Method and Description |
---|---|
int |
getBufferSizeKilobytes()
Determines the size of the internal socket buffer used to buffer data while
receiving/transmitting HTTP messages.
|
int |
getDataWaitTimeoutSeconds()
Defines the socket timeout (SO_TIMEOUT) in seconds, which is the timeout for waiting
for data.
|
int |
getListenPort() |
int |
getTcpConnectionBacklog()
This is the maximum number of queued incoming connections to allow on the listening socket.
|
boolean |
isStaleConnectionCheck()
Determines whether stale connection check is to be used.
|
boolean |
isTcpNoDelay()
Determines whether Nagle's algorithm is to be used.
|
void |
setBufferSizeKilobytes(int bufferSizeKilobytes) |
void |
setDataWaitTimeoutSeconds(int dataWaitTimeoutSeconds) |
void |
setListenPort(int listenPort) |
void |
setStaleConnectionCheck(boolean staleConnectionCheck) |
void |
setTcpConnectionBacklog(int tcpConnectionBacklog) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
public StreamServerConfigurationImpl()
public StreamServerConfigurationImpl(int listenPort)
public int getListenPort()
getListenPort
in interface StreamServerConfiguration
public void setListenPort(int listenPort)
public int getDataWaitTimeoutSeconds()
public void setDataWaitTimeoutSeconds(int dataWaitTimeoutSeconds)
public int getBufferSizeKilobytes()
public void setBufferSizeKilobytes(int bufferSizeKilobytes)
public boolean isStaleConnectionCheck()
true
.public void setStaleConnectionCheck(boolean staleConnectionCheck)
public boolean isTcpNoDelay()
true
.public void setTcpNoDelay(boolean tcpNoDelay)
public int getTcpConnectionBacklog()
public void setTcpConnectionBacklog(int tcpConnectionBacklog)
Copyright © 2014 4th Line GmbH, Switzerland. All Rights Reserved.