Package org.apache.tomcat.util.net
Class SocketWrapperBase.OperationState<A>
- java.lang.Object
- 
- org.apache.tomcat.util.net.SocketWrapperBase.OperationState<A>
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 - Enclosing class:
- SocketWrapperBase<E>
 
 protected abstract class SocketWrapperBase.OperationState<A> extends java.lang.Object implements java.lang.RunnableInternal state tracker for vectored operations.
- 
- 
Field SummaryFields Modifier and Type Field Description protected Aattachmentprotected SocketWrapperBase.BlockingModeblockprotected java.nio.ByteBuffer[]buffersprotected java.util.concurrent.atomic.AtomicBooleancallHandlerprotected SocketWrapperBase.CompletionCheckcheckprotected SocketWrapperBase.VectoredIOCompletionHandler<A>completionprotected booleancompletionDoneprotected java.nio.channels.CompletionHandler<java.lang.Long,? super A>handlerprotected intlengthprotected longnBytesprotected intoffsetprotected booleanreadprotected java.util.concurrent.Semaphoresemaphoreprotected SocketWrapperBase.CompletionStatestateprotected longtimeoutprotected java.util.concurrent.TimeUnitunit
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedOperationState(boolean read, java.nio.ByteBuffer[] buffers, int offset, int length, SocketWrapperBase.BlockingMode block, long timeout, java.util.concurrent.TimeUnit unit, A attachment, SocketWrapperBase.CompletionCheck check, java.nio.channels.CompletionHandler<java.lang.Long,? super A> handler, java.util.concurrent.Semaphore semaphore, SocketWrapperBase.VectoredIOCompletionHandler<A> completion)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidend()End the operation.protected booleanhasOutboundRemaining()protected abstract booleanisInline()protected booleanprocess()Process the operation using the connector executor.protected voidstart()Start the operation, this will typically call run.
 
- 
- 
- 
Field Detail- 
readprotected final boolean read 
 - 
buffersprotected final java.nio.ByteBuffer[] buffers 
 - 
offsetprotected final int offset 
 - 
lengthprotected final int length 
 - 
attachmentprotected final A attachment 
 - 
timeoutprotected final long timeout 
 - 
unitprotected final java.util.concurrent.TimeUnit unit 
 - 
blockprotected final SocketWrapperBase.BlockingMode block 
 - 
checkprotected final SocketWrapperBase.CompletionCheck check 
 - 
handlerprotected final java.nio.channels.CompletionHandler<java.lang.Long,? super A> handler 
 - 
semaphoreprotected final java.util.concurrent.Semaphore semaphore 
 - 
completionprotected final SocketWrapperBase.VectoredIOCompletionHandler<A> completion 
 - 
callHandlerprotected final java.util.concurrent.atomic.AtomicBoolean callHandler 
 - 
nBytesprotected volatile long nBytes 
 - 
stateprotected volatile SocketWrapperBase.CompletionState state 
 - 
completionDoneprotected boolean completionDone 
 
- 
 - 
Constructor Detail- 
OperationStateprotected OperationState(boolean read, java.nio.ByteBuffer[] buffers, int offset, int length, SocketWrapperBase.BlockingMode block, long timeout, java.util.concurrent.TimeUnit unit, A attachment, SocketWrapperBase.CompletionCheck check, java.nio.channels.CompletionHandler<java.lang.Long,? super A> handler, java.util.concurrent.Semaphore semaphore, SocketWrapperBase.VectoredIOCompletionHandler<A> completion)
 
- 
 - 
Method Detail- 
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.
 
- 
 
-