Class BioReceiver
- java.lang.Object
-
- org.apache.catalina.tribes.transport.ReceiverBase
-
- org.apache.catalina.tribes.transport.bio.BioReceiver
-
- All Implemented Interfaces:
java.lang.Runnable,ChannelReceiver,Heartbeat,ListenCallback,RxTaskPool.TaskCreator
@Deprecated public class BioReceiver extends ReceiverBase implements java.lang.Runnable
Deprecated.This will be removed in Tomcat 10
-
-
Field Summary
Fields Modifier and Type Field Description protected java.net.ServerSocketserverSocketDeprecated.protected static StringManagersmDeprecated.-
Fields inherited from class org.apache.catalina.tribes.transport.ReceiverBase
OPTION_DIRECT_BUFFER
-
Fields inherited from interface org.apache.catalina.tribes.ChannelReceiver
MAX_UDP_SIZE
-
-
Constructor Summary
Constructors Constructor Description BioReceiver()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidbind()Deprecated.AbstractRxTaskcreateRxTask()Deprecated.Creates a new receive task.protected BioReplicationTaskgetReplicationThread()Deprecated.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 org.apache.catalina.tribes.transport.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 Detail
-
sm
protected static final StringManager sm
Deprecated.
-
serverSocket
protected java.net.ServerSocket serverSocket
Deprecated.
-
-
Method Detail
-
start
public void start() throws java.io.IOExceptionDeprecated.Description copied from class:ReceiverBaseStarts the receiver by creating the executor service and registering with JMX.- Specified by:
startin interfaceChannelReceiver- Overrides:
startin classReceiverBase- Throws:
java.io.IOException- if an I/O error occurs during startup
-
createRxTask
public AbstractRxTask createRxTask()
Deprecated.Description copied from interface:RxTaskPool.TaskCreatorCreates a new receive task.- Specified by:
createRxTaskin interfaceRxTaskPool.TaskCreator- Returns:
- a new receive task instance
-
getReplicationThread
protected BioReplicationTask 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
protected void bind() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
run
public void run()
Deprecated.- Specified by:
runin interfacejava.lang.Runnable
-
listen
public void listen() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
-