public class BioReplicationTask extends AbstractRxTask
Modifier and Type | Field and Description |
---|---|
protected ObjectReader |
reader |
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, setUseBufferPool
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
Exception
protected void drainSocket() throws Exception
Exception
protected void sendAck(byte[] command)
command
- public void close()
close
in class AbstractRxTask
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.