FilterChain Context implementation.
Context, FilterChain
| Modifier and Type | Class and Description |
|---|---|
| public static interface | FilterChainContext.
The interface, which represents a listener, which will be notified, once |
| public static interface | FilterChainContext.
The interface, which represents a listener, which will be notified, after |
| public static enum | |
| public static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private Holder | addressHolder
|
| private static final ThreadCache. | |
| private final InvokeAction | |
| private final StopAction | |
| private Closeable | |
| private final List | |
| private final Runnable | |
| private final List | |
| private int | |
| protected FilterChainEvent | event
Context associated event, if EVENT operation |
| private int | filterIdx
Index of the currently executing |
| pack-priv final InternalContextImpl | |
| private static final NextAction | INVOKE_ACTION
Cached |
| private static final Logger | |
| private Object | message
Context associated message |
| public static final int | |
| private FilterChainContext. | |
| protected CompletionHandler | operationCompletionHandler
|
| pack-priv NextAction | |
| private static final NextAction | RERUN_FILTER_ACTION
Cached |
| private int | |
| private volatile FilterChainContext. | state
Context task state |
| private static final NextAction | STOP_ACTION
Cached |
| private static final NextAction | SUSPEND_ACTION
Cached |
| pack-priv final FilterChainContext. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addCompletionListener(final FilterChainContext.
the listenerCompletionListener, which will be notified, when this FilterChainContext
processing will be completed.Add the |
| public final void | addCopyListener(final FilterChainContext.
the listenerCopyListener, which will be notified, right after this FilterChainContext#copy()
is called.Add the |
| public void | |
| public void | |
| public FilterChainContext | |
| public static FilterChainContext | |
| public static FilterChainContext | |
| public void | |
| public void | |
| public void | fork()
This method invocation suggests the |
| public void | fork(final NextAction nextAction)
This method invocation suggests the |
| public Object | Returns: address, associated with the currentorg. processing.Get address, associated with the current |
| public Holder | Returns: Holder, which contains address, associated with the current org.
processing.Get a |
| public AttributeHolder | getAttributes()
Implements org. Get associated |
| public Closeable | Returns: Closeable object, associated with the current processing.Get the |
| public Connection | Returns: Connection object, associated with the current processing.Get the |
| public int | |
| public FilterChain | |
| public int | |
| public NextAction | getForkAction()
Returns: |
| public NextAction | getForkAction(final NextAction nextAction)
Returns: |
| public final Context | Returns: the general GrizzlyContext this filter context wraps.Get the general Grizzly |
| public NextAction | getInvokeAction()
Get |
| public NextAction | getInvokeAction(final Object
signals, that there is some unparsed data remaining in the source message, so
unparsedChunk)FilterChain could be rerun.Get |
| public <E> NextAction | getInvokeAction(final E
signals, that there is a data chunk remaining, which doesn't represent complete message. As
more data becomes available but before incompleteChunk, Appender<E> FilterChain calls the current Filter, it will check if the
Filter has any data stored after the last invocation. If a remainder is present it will append the new data
to the stored one and pass the result as the FilterChainContext message.the appender)org., which knows how to append chunks of type
<E>.Get |
| public final MemoryManager | |
| public <T> T | Returns: message object, associated with the current processing.Get message object, associated with the current processing. |
| pack-priv FilterChainContext. | |
| public NextAction | |
| protected final Runnable | |
| public int | |
| public NextAction | |
| public NextAction | getStopAction(final Object
signals, that there is a data chunk remaining, which doesn't represent complete message. As
more data becomes available but before incompleteChunk)FilterChain calls the current Filter, it will check if the
Filter has any data stored after the last invocation. If a remainder is present it will append the new data
to the stored one and pass the result as the FilterChainContext message.Get |
| public <E> NextAction | getStopAction(final E
signals, that there is a data chunk remaining, which doesn't represent complete message. As
more data becomes available but before incompleteChunk, final Appender<E> FilterChain calls the current Filter, it will check if the
Filter has any data stored after the last invocation. If a remainder is present it will append the new data
to the stored one and pass the result as the FilterChainContext message.the appender)org., which knows how to append chunks of type
<E>.Get |
| public NextAction | |
| public NextAction | getSuspendingStopAction()
Deprecated
use
getForkAction()
Returns: |
| public FilterChainContext. | |
| pack-priv static FilterChainContext. | |
| public boolean | |
| public int | |
| pack-priv static void | notifyComplete(final FilterChainContext context, final List<FilterChainContext.
|
| pack-priv static void | notifyCopy(final FilterChainContext srcContext, final FilterChainContext copiedContext, final List<FilterChainContext.
|
| public void | |
| public void | notifyDownstream(final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler)
|
| public void | |
| public void | notifyUpstream(final FilterChainEvent event, final CompletionHandler<FilterChainContext> completionHandler)
|
| public int | |
| public ReadResult | |
| public final boolean | Returns: true, if the listener was removed from the list, or false, if the listener wasn't on the list.the listenerCompletionListener to be removed.Remove the |
| public final boolean | Returns: true, if the listener was removed from the list, or false, if the listener wasn't on the list.the listenerCopyListener to be removed.Remove the |
| public void | |
| public void | |
| public void | resume(final NextAction
the nextAction)NextAction, based on which FilterChain will continue processing.Resume the current FilterChain task processing by completing the current |
| public void | resumeNext()
Resume processing of the current task starting from the Filter, which follows the Filter, which suspend the processing. |
| public void | setAddress(final Object
address, associated with the current address)org. processing.Set address, associated with the current |
| public void | setAddressHolder(final Holder<?>
Holder, which contains address, associated with the current
org. processing.Set address, associated with the current |
| pack-priv void | setCloseable(final Closeable
Closeable object, associated with the current processing. If null the
getConnection() value will be assignedSet the |
| pack-priv void | setConnection(final Connection<L>
Connection object, associated with the current processing.Set the |
| public void | |
| public void | |
| public void | setMessage(Object
message object, associated with the current processing. message)Set message object, associated with the current processing. |
| pack-priv void | |
| public void | |
| public FilterChainContext. | |
| public Runnable | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | write(final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final boolean blocking)
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler)
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final boolean blocking)
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final PushBackHandler pushBackHandler)
Deprecated
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final PushBackHandler pushBackHandler, final boolean blocking)
Deprecated
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final MessageCloner<E> cloner)
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final PushBackHandler pushBackHandler, final MessageCloner<E> cloner)
Deprecated
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final MessageCloner<E> cloner, final boolean blocking)
|
| public void | write(final Object address, final Object message, final CompletionHandler<WriteResult<K, L>> completionHandler, final PushBackHandler pushBackHandler, final MessageCloner<E> cloner, final boolean blocking)
Deprecated
|