Package org.hcjf.io.net
Class NetService.NetIOThread
- java.lang.Object
-
- java.lang.Thread
-
- org.hcjf.service.ServiceThread
-
- org.hcjf.io.net.NetService.NetIOThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- NetService
public class NetService.NetIOThread extends ServiceThread
Net IO thread.
-
-
Constructor Summary
Constructors Constructor Description NetIOThread(java.lang.Runnable target)
-
Method Summary
Modifier and Type Method Description java.nio.ByteBuffergetInputBuffer()Return the input buffer of the thread.intgetInputBufferSize()Return the size of the internal buffer used to read input data.java.nio.ByteBuffergetOutputBuffer()Return the output buffer of the thread.intgetOutputBufferSize()Return the size of the internal buffer used to write output data.-
Methods inherited from class org.hcjf.service.ServiceThread
checkAllocatedMemory, checkExecutionTime, checkInterruptedThread, configureMaxAllocatedMemory, configureMaxExecutionTime, getAccumulatedAllocatedMemory, getAccumulatedTime, getInitialAllocatedMemory, getInitialTime, getLayerStack, getMaxAllocatedMemory, getMaxExecutionTime, getServiceClass, getSession, putLayer, removeLayer, setSession
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
getInputBuffer
public final java.nio.ByteBuffer getInputBuffer()
Return the input buffer of the thread.- Returns:
- Input buffer.
-
getOutputBuffer
public final java.nio.ByteBuffer getOutputBuffer()
Return the output buffer of the thread.- Returns:
- Output buffer.
-
getInputBufferSize
public int getInputBufferSize()
Return the size of the internal buffer used to read input data.- Returns:
- Size of the internal input buffer.
-
getOutputBufferSize
public int getOutputBufferSize()
Return the size of the internal buffer used to write output data.- Returns:
- Size of the internal output buffer.
-
-