Package org.apache.tomcat.util.net
Class SocketWrapperBase.OperationState<A>
java.lang.Object
org.apache.tomcat.util.net.SocketWrapperBase.OperationState<A>
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- SocketWrapperBase<E>
Internal state tracker for vectored operations.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Aprotected final SocketWrapperBase.BlockingModeprotected final ByteBuffer[]protected final AtomicBooleanprotected final SocketWrapperBase.CompletionCheckprotected final SocketWrapperBase<E>.VectoredIOCompletionHandler<A>protected booleanprotected final CompletionHandler<Long,? super A> protected final intprotected longprotected final intprotected final booleanprotected final Semaphoreprotected SocketWrapperBase.CompletionStateprotected final longprotected final TimeUnit
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedOperationState(boolean read, ByteBuffer[] buffers, int offset, int length, SocketWrapperBase.BlockingMode block, long timeout, TimeUnit unit, A attachment, SocketWrapperBase.CompletionCheck check, CompletionHandler<Long, ? super A> handler, Semaphore semaphore, SocketWrapperBase<E>.VectoredIOCompletionHandler<A> completion) 
- 
Method Summary
- 
Field Details- 
readprotected final boolean read
- 
buffers
- 
offsetprotected final int offset
- 
lengthprotected final int length
- 
attachment
- 
timeoutprotected final long timeout
- 
unit
- 
block
- 
check
- 
handler
- 
semaphore
- 
completion
- 
callHandler
- 
nBytesprotected volatile long nBytes
- 
state
- 
completionDoneprotected boolean completionDone
 
- 
- 
Constructor Details- 
OperationStateprotected OperationState(boolean read, ByteBuffer[] buffers, int offset, int length, SocketWrapperBase.BlockingMode block, long timeout, TimeUnit unit, A attachment, SocketWrapperBase.CompletionCheck check, CompletionHandler<Long, ? super A> handler, Semaphore semaphore, SocketWrapperBase<E>.VectoredIOCompletionHandler<A> completion) 
 
- 
- 
Method Details- 
isInlineprotected abstract boolean isInline()- Returns:
- true if the operation is still inline, false if the operation is running on a thread that is not the original caller
 
- 
hasOutboundRemainingprotected boolean hasOutboundRemaining()
- 
processprotected boolean process()Process the operation using the connector executor.- Returns:
- true if the operation was accepted, false if the executor rejected execution
 
- 
startprotected void start()Start the operation, this will typically call run.
- 
endprotected void end()End the operation.
 
-