Class BioReplicationTask
- java.lang.Object
- 
- org.apache.catalina.tribes.transport.AbstractRxTask
- 
- org.apache.catalina.tribes.transport.bio.BioReplicationTask
 
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 
 @Deprecated public class BioReplicationTask extends AbstractRxTask Deprecated.This will be removed in Tomcat 10A worker thread class which can drain channels and echo-back the input. Each instance is constructed with a reference to the owning thread pool object. When started, the thread loops forever waiting to be awakened to service the channel associated with a SelectionKey object. The worker is tasked by calling its serviceChannel() method with a SelectionKey object. The serviceChannel() method stores the key reference in the thread object then calls notify() to wake it up. When the channel has been drained, the worker thread returns itself to its parent pool.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ObjectReaderreaderDeprecated.protected static StringManagersmDeprecated.protected java.net.SocketsocketDeprecated.- 
Fields inherited from class org.apache.catalina.tribes.transport.AbstractRxTaskOPTION_DIRECT_BUFFER, useBufferPool
 
- 
 - 
Constructor SummaryConstructors Constructor Description BioReplicationTask(ListenCallback callback)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.protected voiddrainSocket()Deprecated.The actual code which drains the channel associated with the given key.protected voidexecute(ObjectReader reader)Deprecated.voidrun()Deprecated.protected voidsendAck(byte[] command)Deprecated.Send a reply-acknowledgment (6,2,3)voidserviceSocket(java.net.Socket socket, ObjectReader reader)Deprecated.- 
Methods inherited from class org.apache.catalina.tribes.transport.AbstractRxTaskgetCallback, getOptions, getTaskPool, getUseBufferPool, isDoRun, setCallback, setDoRun, setOptions, setTaskPool, setUseBufferPool
 
- 
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm Deprecated.
 - 
socketprotected java.net.Socket socket Deprecated.
 - 
readerprotected ObjectReader reader Deprecated.
 
- 
 - 
Constructor Detail- 
BioReplicationTaskpublic BioReplicationTask(ListenCallback callback) Deprecated.
 
- 
 - 
Method Detail- 
runpublic void run() Deprecated.
 - 
serviceSocketpublic void serviceSocket(java.net.Socket socket, ObjectReader reader)Deprecated.
 - 
executeprotected void execute(ObjectReader reader) throws java.lang.Exception Deprecated.- Throws:
- java.lang.Exception
 
 - 
drainSocketprotected void drainSocket() throws java.lang.ExceptionDeprecated.The actual code which drains the channel associated with the given key. This method assumes the key has been modified prior to invocation to turn off selection interest in OP_READ. When this method completes it re-enables OP_READ and calls wakeup() on the selector so the selector will resume watching this channel.- Throws:
- java.lang.Exception- IO exception or execute exception
 
 - 
sendAckprotected void sendAck(byte[] command) Deprecated.Send a reply-acknowledgment (6,2,3)- Parameters:
- command- The command to write
 
 - 
closepublic void close() Deprecated.- Overrides:
- closein class- AbstractRxTask
 
 
- 
 
-