| Modifier and Type | Class and Description |
|---|---|
| private static class | HttpPipelineOptAddOn.
The filter, that works as a plug in the FilterChain, and buffers output data before passing it down to a transport filter, which will write the data to network. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final int | maxBufferSize
max number of response bytes to buffer before flush |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpPipelineOptAddOn(final int
the max number of response bytes to buffer before flush maxBufferSize)Constructs HttpPipelineOptAddOn. |
| Modifier and Type | Method and Description |
|---|---|
| public void | setup(final NetworkListener networkListener, final FilterChainBuilder builder)
Implements org. The method, which will be invoked by |
| DEFAULT_MAX_BUFFER_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_BUFFER_SIZE | |
| maxBufferSize | back to summary |
|---|---|
| private final int maxBufferSize max number of response bytes to buffer before flush | |
| HttpPipelineOptAddOn | back to summary |
|---|---|
| public HttpPipelineOptAddOn() Constructs HttpPipelineOptAddOn. | |
| HttpPipelineOptAddOn | back to summary |
|---|---|
| public HttpPipelineOptAddOn(final int maxBufferSize) Constructs HttpPipelineOptAddOn.
| |
| setup | back to summary |
|---|---|
| public void setup(final NetworkListener networkListener, final FilterChainBuilder builder) Implements org. Doc from org. The method, which will be invoked by
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Attribute |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public NextAction | handleRead(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when channel will become available for reading. |
| public NextAction | handleWrite(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when some data should be written on channel. |
| maxBufferSize | back to summary |
|---|---|
| private final int maxBufferSize | |
| plugAttr | back to summary |
|---|---|
| private final Attribute<HttpPipelineOptAddOn. | |
| PlugFilter | back to summary |
|---|---|
| public PlugFilter(final int maxBufferSize, final AttributeBuilder builder) | |
| handleRead | back to summary |
|---|---|
| public NextAction handleRead(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when channel will become available for reading. This
| |
| handleWrite | back to summary |
|---|---|
| public NextAction handleWrite(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when some data should be written on channel. This
| |
| Modifier and Type | Field and Description |
|---|---|
| private CompletionHandler | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | cancelled()
Implements org. The operation was cancelled. |
| public void | |
| public void | completed(final Object result)
Implements org. The operation was completed. |
| private void | |
| public void | failed(final Throwable throwable)
Implements org. The operation was failed. |
| public void | updated(final Object result)
Implements org. The callback method may be called, when there is some progress in operation execution, but it is still not completed |
| handlers | back to summary |
|---|---|
| private CompletionHandler<E>[] handlers | |
| sz | back to summary |
|---|---|
| private int sz | |
| AggrCompletionHandler | back to summary |
|---|---|
| public AggrCompletionHandler() | |
| add | back to summary |
|---|---|
| public void add(final CompletionHandler<E> handler) | |
| cancelled | back to summary |
|---|---|
| public void cancelled() Implements org. Doc from org. The operation was cancelled.
| |
| clear | back to summary |
|---|---|
| public void clear() | |
| completed | back to summary |
|---|---|
| public void completed(final Object result) Implements org. Doc from org. The operation was completed.
| |
| ensureSize | back to summary |
|---|---|
| private void ensureSize() | |
| failed | back to summary |
|---|---|
| public void failed(final Throwable throwable) Implements org. Doc from org. The operation was failed.
| |
| updated | back to summary |
|---|---|
| public void updated(final Object result) Implements org. Doc from org. The callback method may be called, when there is some progress in operation execution, but it is still not completed
| |
| Modifier and Type | Field and Description |
|---|---|
| private HttpPipelineOptAddOn. | |
| private CompositeBuffer | |
| private static final ThreadCache. | |
| private final MessageCloner | |
| private FilterChainContext | |
| private boolean | |
| private boolean | |
| private HttpPipelineOptAddOn. |
| Access | Constructor and Description |
|---|---|
| public |
| aggrCompletionHandler | back to summary |
|---|---|
| private HttpPipelineOptAddOn. | |
| buffer | back to summary |
|---|---|
| private CompositeBuffer buffer | |
| CACHE_IDX | back to summary |
|---|---|
| private static final ThreadCache. | |
| cloner | back to summary |
|---|---|
| private final MessageCloner<Buffer> cloner | |
| ctx | back to summary |
|---|---|
| private FilterChainContext ctx | |
| isPlugged | back to summary |
|---|---|
| private boolean isPlugged | |
| isWrittenInThisThread | back to summary |
|---|---|
| private boolean isWrittenInThisThread | |
| plugFilter | back to summary |
|---|---|
| private HttpPipelineOptAddOn. | |
| Plug | back to summary |
|---|---|
| public Plug() | |
| append | back to summary |
|---|---|
| private boolean append(final Buffer msg, final CompletionHandler<E> completionHandler) Appends buffer to the queue. | |
| create | back to summary |
|---|---|
| public static HttpPipelineOptAddOn. | |
| flush | back to summary |
|---|---|
| private void flush() flushes buffered data
| |
| init | back to summary |
|---|---|
| pack-priv HttpPipelineOptAddOn. | |
| obtainAggrCompletionHandler | back to summary |
|---|---|
| private HttpPipelineOptAddOn. | |
| obtainCompositeBuffer | back to summary |
|---|---|
| private CompositeBuffer obtainCompositeBuffer() | |
| onComplete | back to summary |
|---|---|
| public void onComplete(final Context context, final Object data) throws IOException Overrides org. Implements org. Doc from org.
| |
| onContextManualIOEventControl | back to summary |
|---|---|
| public void onContextManualIOEventControl(final Context context) throws IOException Overrides org. Implements org. Doc from org. Processing switched to the manual IOEvent control.
| |
| onContextSuspend | back to summary |
|---|---|
| public void onContextSuspend(final Context context) throws IOException Overrides org. Implements org. Doc from org.
| |
| recycle | back to summary |
|---|---|
| private void recycle() | |
| size | back to summary |
|---|---|
| private int size() | |
| unplug | back to summary |
|---|---|
| private void unplug(final Context context) Releases the plug, which means we have to flush all the data and remove the PlugFilter attr from the context. | |