public interface Endpoint
| Modifier and Type | Interface and Description |
|---|---|
static class |
Endpoint.EndpointType
Describe the endpoint's I/O connector type
|
static class |
Endpoint.Protocol
Describes the endpoint's protocol
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAcceptQueueSize()
Get number of connection requests that can be queued up before the
operating system starts to send rejections.
|
Endpoint.EndpointType |
getEndpointType()
Get the endpoint connector I/O type.
|
String |
getHost()
Returns the endpoint's host.
|
int |
getMaxIdleTime()
Default valule is 200000 ms
|
int |
getNumAcceptors()
Get the number of thread dedicated to accepting incoming connections.
|
int |
getPort()
Returns the endpoint's port number.
|
Endpoint.Protocol |
getProtocol()
Returns the endpoint's protocol.
|
void |
setAcceptQueueSize(int acceptQueueSize)
Set number of connection requests that can be queued up before the
operating system starts to send rejections.
|
void |
setEndpointType(Endpoint.EndpointType type)
Set the endpoint connector I/O type (like blocking or NIO).
|
void |
setMaxIdleTime(int maxIdleTime)
Set the maximum Idle time for a connection, which roughly translates
to the
Socket.setSoTimeout(int) call but depends on
the application server used and how it is configured. |
void |
setNumAcceptors(int acceptors)
Set the number of thread dedicated to accepting incoming connections.
|
int getPort()
String getHost()
Endpoint.Protocol getProtocol()
int getNumAcceptors()
void setNumAcceptors(int acceptors)
acceptors - thread number. Defaults to 1int getAcceptQueueSize()
void setAcceptQueueSize(int acceptQueueSize)
acceptQueueSize - max number of queued requests. Defaults to 0. For the semantics
see backlog parameter in
ServerSocket.bind(java.net.SocketAddress, int)void setMaxIdleTime(int maxIdleTime)
Socket.setSoTimeout(int) call but depends on
the application server used and how it is configured.
The max idle time is applied:This value MUST be bigger than the keep alive period on the client.
Default value is 200000 ms
maxIdleTime - The maxIdleTime to set.int getMaxIdleTime()
void setEndpointType(Endpoint.EndpointType type)
Endpoint.EndpointType.BLOCKING.type - the I/O type to useEndpoint.EndpointType getEndpointType()
EndpointType representing the typeCopyright © 2023. All rights reserved.