public class BioReplicationTask extends AbstractRxTask
| Modifier and Type | Field and Description |
|---|---|
protected ObjectReader |
reader |
protected static StringManager |
sm |
protected Socket |
socket |
OPTION_DIRECT_BUFFER, useBufferPool| Constructor and Description |
|---|
BioReplicationTask(ListenCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
drainSocket()
The actual code which drains the channel associated with
the given key.
|
protected void |
execute(ObjectReader reader) |
void |
run() |
protected void |
sendAck(byte[] command)
Send a reply-acknowledgment (6,2,3)
|
void |
serviceSocket(Socket socket,
ObjectReader reader) |
getCallback, getOptions, getTaskPool, getUseBufferPool, isDoRun, setCallback, setDoRun, setOptions, setTaskPool, setUseBufferPoolprotected static final StringManager sm
protected Socket socket
protected ObjectReader reader
public BioReplicationTask(ListenCallback callback)
public void run()
public void serviceSocket(Socket socket, ObjectReader reader)
protected void execute(ObjectReader reader) throws Exception
Exceptionprotected void drainSocket()
throws Exception
Exception - IO exception or execute exceptionprotected void sendAck(byte[] command)
command - The command to writepublic void close()
close in class AbstractRxTaskCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.