public class BioReplicationTask extends AbstractRxTask
Modifier and Type | Field and Description |
---|---|
protected ObjectReader |
reader |
protected static StringManager |
sm |
protected java.net.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(java.net.Socket socket,
ObjectReader reader) |
getCallback, getOptions, getTaskPool, getUseBufferPool, isDoRun, setCallback, setDoRun, setOptions, setTaskPool, setUseBufferPool
protected static final StringManager sm
protected java.net.Socket socket
protected ObjectReader reader
public BioReplicationTask(ListenCallback callback)
public void run()
public void serviceSocket(java.net.Socket socket, ObjectReader reader)
protected void execute(ObjectReader reader) throws java.lang.Exception
java.lang.Exception
protected void drainSocket() throws java.lang.Exception
java.lang.Exception
protected void sendAck(byte[] command)
command
- public void close()
close
in class AbstractRxTask
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.