Class AbstractRxTask
java.lang.Object
org.apache.catalina.tribes.transport.AbstractRxTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
NioReplicationTask
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOption flag for using direct buffers.protected booleanWhether to use the buffer pool. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this task.Gets the callback.intGets the options.Gets the task pool.booleanGets whether the buffer pool is being used.voidsetCallback(ListenCallback callback) Sets the callback.voidsetOptions(int options) Sets the options.voidsetTaskPool(RxTaskPool pool) Sets the task pool.voidsetUseBufferPool(boolean usebufpool) Sets whether to use the buffer pool.
-
Field Details
-
OPTION_DIRECT_BUFFER
public static final int OPTION_DIRECT_BUFFEROption flag for using direct buffers.- See Also:
-
useBufferPool
protected boolean useBufferPoolWhether to use the buffer pool.
-
-
Constructor Details
-
AbstractRxTask
Constructs a new AbstractRxTask.- Parameters:
callback- The callback
-
-
Method Details
-
setTaskPool
-
setOptions
public void setOptions(int options) Sets the options.- Parameters:
options- The options
-
setCallback
Sets the callback.- Parameters:
callback- The callback
-
getTaskPool
-
getOptions
public int getOptions()Gets the options.- Returns:
- The options
-
getCallback
-
close
public void close()Closes this task. -
setUseBufferPool
public void setUseBufferPool(boolean usebufpool) Sets whether to use the buffer pool.- Parameters:
usebufpool-trueto use the buffer pool
-
getUseBufferPool
public boolean getUseBufferPool()Gets whether the buffer pool is being used.- Returns:
trueif the buffer pool is being used
-