Class BioReceiver
java.lang.Object
org.apache.catalina.tribes.transport.ReceiverBase
org.apache.catalina.tribes.transport.bio.BioReceiver
- All Implemented Interfaces:
Runnable, ChannelReceiver, Heartbeat, ListenCallback, RxTaskPool.TaskCreator
Deprecated.
This will be removed in Tomcat 10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServerSocketDeprecated.protected static final StringManagerDeprecated.Fields inherited from class ReceiverBase
OPTION_DIRECT_BUFFERFields inherited from interface ChannelReceiver
MAX_UDP_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbind()Deprecated.Deprecated.Creates a new receive task.protected BioReplicationTaskDeprecated.voidlisten()Deprecated.voidrun()Deprecated.voidstart()Deprecated.Starts the receiver by creating the executor service and registering with JMX.voidstop()Deprecated.Stops the receiver by shutting down the executor and unregistering from JMX.Methods inherited from class ReceiverBase
bind, bindUdp, doListen, getActiveCount, getAddress, getAutoBind, getBind, getChannel, getCompletedTaskCount, getDirect, getExecutor, getHost, getListener, getMaxIdleTime, getMaxTasks, getMaxThreads, getMessageListener, getMinTasks, getMinThreads, getOoBInline, getPoolSize, getPort, getRxBufSize, getSecurePort, getSelectorTimeout, getSoKeepAlive, getSoLingerOn, getSoLingerTime, getSoReuseAddress, getSoTrafficClass, getTaskCount, getTaskPool, getTcpNoDelay, getTimeout, getTxBufSize, getUdpPort, getUdpRxBufSize, getUdpTxBufSize, getUseBufferPool, getWorkerThreadOptions, heartbeat, isDaemon, isListening, messageDataReceived, setAddress, setAutoBind, setBind, setChannel, setDaemon, setDirect, setExecutor, setHost, setListen, setListener, setMaxIdleTime, setMaxTasks, setMaxThreads, setMessageListener, setMinTasks, setMinThreads, setOoBInline, setPool, setPort, setRxBufSize, setSecurePort, setSelectorTimeout, setSoKeepAlive, setSoLingerOn, setSoLingerTime, setSoReuseAddress, setSoTrafficClass, setTcpNoDelay, setTimeout, setTxBufSize, setUdpPort, setUdpRxBufSize, setUdpTxBufSize, setUseBufferPool
-
Field Details
-
sm
Deprecated. -
serverSocket
Deprecated.
-
-
Constructor Details
-
BioReceiver
public BioReceiver()Deprecated.
-
-
Method Details
-
start
Deprecated.Description copied from class:ReceiverBaseStarts the receiver by creating the executor service and registering with JMX.- Specified by:
startin interfaceChannelReceiver- Overrides:
startin classReceiverBase- Throws:
IOException- if an I/O error occurs during startup
-
createRxTask
Deprecated.Description copied from interface:RxTaskPool.TaskCreatorCreates a new receive task.- Specified by:
createRxTaskin interfaceRxTaskPool.TaskCreator- Returns:
- a new receive task instance
-
getReplicationThread
Deprecated. -
stop
public void stop()Deprecated.Description copied from class:ReceiverBaseStops the receiver by shutting down the executor and unregistering from JMX.- Specified by:
stopin interfaceChannelReceiver- Overrides:
stopin classReceiverBase
-
bind
-
run
-
listen
-