public interface Transport extends ConfigBeanProxy, PropertyBag
Modifier and Type | Interface and Description |
---|---|
static class |
Transport.Duck |
Modifier and Type | Field and Description |
---|---|
static int |
ACCEPTOR_THREADS |
static int |
BUFFER_SIZE |
static String |
BYTE_BUFFER_TYPE |
static String |
CLASSNAME |
static boolean |
DEDICATED_ACCEPTOR_ENABLED |
static boolean |
DISPLAY_CONFIGURATION |
static int |
IDLE_KEY_TIMEOUT |
static int |
LINGER |
static int |
MAX_CONNECTIONS_COUNT |
static int |
READ_TIMEOUT |
static int |
SELECTOR_POLL_TIMEOUT |
static int |
SOCKET_RCV_BUFFER_SIZE |
static int |
SOCKET_SND_BUFFER_SIZE |
static boolean |
TCP_NO_DELAY |
static int |
WRITE_TIMEOUT |
Modifier and Type | Method and Description |
---|---|
List<NetworkListener> |
findNetworkListeners() |
String |
getAcceptorThreads()
The number of acceptor threads listening for the transport's events
|
String |
getBufferSizeBytes()
Deprecated.
This attribute is now ignored. Use socket-send-Buffer-size and/or socket-write-buffer-size instead.
|
@Pattern(regexp="heap|direct",flags=CASE_INSENSITIVE) String |
getByteBufferType()
Type of ByteBuffer, which will be used with transport.
|
String |
getClassname()
Name of class, which implements transport logic
|
String |
getDedicatedAcceptorEnabled() |
String |
getDisplayConfiguration()
Flush Grizzly's internal configuration to the server logs (like number of threads created, how many polled
objects, etc.)
|
String |
getIdleKeyTimeoutSeconds()
Timeout, after which idle key will be cancelled and channel closed
|
String |
getIoStrategy()
IOStrategy to be used by Transport . |
String |
getLinger() |
String |
getMaxConnectionsCount()
The max number of connections the transport should handle at the same time
|
String |
getName()
Transport's name, which could be used as reference
|
Transports |
getParent()
Returns the parent element of this configuration element.
|
String |
getReadTimeoutMillis()
Read operation timeout in ms
|
String |
getSelectionKeyHandler()
Deprecated.
This attribute as well as the named selection-key-handler element this attribute refers to has been
deprecated and is effectively ignored by the runtime. No equivalent functionality is available.
|
String |
getSelectorPollTimeoutMillis()
The time, in milliseconds, a NIO Selector will block waiting for events (users requests).
|
String |
getSocketReadBufferSize()
The size, in bytes, of the socket send buffer size.
|
String |
getSocketWriteBufferSize()
The size, in bytes, of the socket send buffer size.
|
String |
getTcpNoDelay() |
String |
getWriteTimeoutMillis()
Write operation timeout in ms
|
void |
setAcceptorThreads(String value) |
void |
setBufferSizeBytes(String size) |
void |
setByteBufferType(String value) |
void |
setClassname(String value) |
void |
setDedicatedAcceptorEnabled(String isEnabled) |
void |
setDisplayConfiguration(String bool) |
void |
setIdleKeyTimeoutSeconds(String value) |
void |
setIoStrategy(String ioStrategy) |
void |
setLinger(String linger) |
void |
setMaxConnectionsCount(String value) |
void |
setName(String value) |
void |
setReadTimeoutMillis(String value) |
void |
setSelectionKeyHandler(String value) |
void |
setSelectorPollTimeoutMillis(String timeout) |
void |
setSocketReadBufferSize() |
void |
setSocketWriteBufferSize() |
void |
setTcpNoDelay(String noDelay) |
void |
setWriteTimeoutMillis(String value) |
createChild, deepCopy, getParent
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
static final boolean DISPLAY_CONFIGURATION
static final boolean TCP_NO_DELAY
static final int ACCEPTOR_THREADS
static final int BUFFER_SIZE
static final int IDLE_KEY_TIMEOUT
static final int LINGER
static final int MAX_CONNECTIONS_COUNT
static final int READ_TIMEOUT
static final int WRITE_TIMEOUT
static final int SELECTOR_POLL_TIMEOUT
static final int SOCKET_RCV_BUFFER_SIZE
static final int SOCKET_SND_BUFFER_SIZE
static final String BYTE_BUFFER_TYPE
static final String CLASSNAME
static final boolean DEDICATED_ACCEPTOR_ENABLED
String getAcceptorThreads()
void setAcceptorThreads(String value)
String getSocketWriteBufferSize()
void setSocketWriteBufferSize()
String getSocketReadBufferSize()
void setSocketReadBufferSize()
@Deprecated String getBufferSizeBytes()
void setBufferSizeBytes(String size)
@Pattern(regexp="heap|direct", flags=CASE_INSENSITIVE) @Pattern(regexp="heap|direct",flags=CASE_INSENSITIVE) String getByteBufferType()
void setByteBufferType(String value)
String getClassname()
void setClassname(String value)
void setIoStrategy(String ioStrategy)
String getDisplayConfiguration()
void setDisplayConfiguration(String bool)
String getIdleKeyTimeoutSeconds()
void setIdleKeyTimeoutSeconds(String value)
String getMaxConnectionsCount()
void setMaxConnectionsCount(String value)
String getName()
void setName(String value)
String getReadTimeoutMillis()
void setReadTimeoutMillis(String value)
@Deprecated String getSelectionKeyHandler()
void setSelectionKeyHandler(String value)
String getSelectorPollTimeoutMillis()
void setSelectorPollTimeoutMillis(String timeout)
String getWriteTimeoutMillis()
void setWriteTimeoutMillis(String value)
String getTcpNoDelay()
void setTcpNoDelay(String noDelay)
String getLinger()
void setLinger(String linger)
String getDedicatedAcceptorEnabled()
void setDedicatedAcceptorEnabled(String isEnabled)
@DuckTyped List<NetworkListener> findNetworkListeners()
@DuckTyped Transports getParent()
ConfigBeanProxy
getParent
in interface ConfigBeanProxy
Copyright © 2020. All rights reserved.