java.lang.Object
org.glassfish.grizzly.asyncqueue.AsyncQueueRecord<R>
- Type Parameters:
R- the result type
- All Implemented Interfaces:
Cacheable
- Direct Known Subclasses:
AsyncReadQueueRecord,AsyncWriteQueueRecord
AsyncQueue element unit- Author:
- Alexey Stashok
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CompletionHandlerprotected Connectionprotected booleanprotected Objectprotected DebugPoint -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAsyncQueueRecord(Connection connection, Object message, CompletionHandler completionHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidabstract RReturns the current record result object.final <T> Tvoidfinal voidprotected final voidset(Connection connection, Object message, CompletionHandler completionHandler) final voidsetMessage(Object message)
-
Field Details
-
connection
-
message
-
completionHandler
-
isRecycled
protected boolean isRecycled -
recycleTrack
-
-
Constructor Details
-
AsyncQueueRecord
protected AsyncQueueRecord() -
AsyncQueueRecord
-
-
Method Details
-
set
protected final void set(Connection connection, Object message, CompletionHandler completionHandler) -
getConnection
-
getMessage
public final <T> T getMessage() -
setMessage
-
getCurrentResult
Returns the current record result object.- Returns:
- the current record result object
-
notifyFailure
-
notifyIncomplete
public final void notifyIncomplete() -
checkRecycled
protected final void checkRecycled()
-