Top Description Fields Constructors Methods
org.glassfish.grizzly.asyncqueue

public abstract Class AsyncQueueRecord<R>

extends Object
implements Cacheable
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.Cacheable
Known Direct Subclasses
org.glassfish.grizzly.asyncqueue.AsyncReadQueueRecord, org.glassfish.grizzly.asyncqueue.AsyncWriteQueueRecord
Type Parameters
<R>
the result type
Imports
java.util.logging.Level, .Logger, org.glassfish.grizzly.Cacheable, .CompletionHandler, .Connection, .Grizzly, org.glassfish.grizzly.localization.LogMessages, org.glassfish.grizzly.utils.DebugPoint

AsyncQueue element unit
Author
Alexey Stashok

Field Summary

Modifier and TypeField and Description
protected CompletionHandler<E>
protected Connection<L>
protected boolean
private static final Logger
protected Object
protected DebugPoint

Constructor Summary

AccessConstructor and Description
protected
public
AsyncQueueRecord(final Connection<L> connection, final Object message, final CompletionHandler<E> completionHandler)

Method Summary

Modifier and TypeMethod and Description
protected final void
public Connection<L>
public abstract R

Returns:

the current record result object
getCurrentResult
()

Returns the current record result object.

public final <T> T
public void
public final void
protected final void
set(final Connection<L> connection, final Object message, final CompletionHandler<E> completionHandler)

public final void
setMessage(final Object message)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

completionHandlerback to summary
protected CompletionHandler<E> completionHandler
connectionback to summary
protected Connection<L> connection
isRecycledback to summary
protected boolean isRecycled
LOGGERback to summary
private static final Logger LOGGER
messageback to summary
protected Object message
recycleTrackback to summary
protected DebugPoint recycleTrack

Constructor Detail

AsyncQueueRecordback to summary
protected AsyncQueueRecord()
AsyncQueueRecordback to summary
public AsyncQueueRecord(final Connection<L> connection, final Object message, final CompletionHandler<E> completionHandler)

Method Detail

checkRecycledback to summary
protected final void checkRecycled()
getConnectionback to summary
public Connection<L> getConnection()
getCurrentResultback to summary
public abstract R getCurrentResult()

Returns the current record result object.

Returns:R

the current record result object

getMessageback to summary
public final <T> T getMessage()
Annotations
@SuppressWarnings:unchecked
notifyFailureback to summary
public void notifyFailure(final Throwable e)
notifyIncompleteback to summary
public final void notifyIncomplete()
Annotations
@SuppressWarnings:unchecked
setback to summary
protected final void set(final Connection<L> connection, final Object message, final CompletionHandler<E> completionHandler)
setMessageback to summary
public final void setMessage(final Object message)