public class DelegatingExecutionContext extends java.lang.Object implements ExecutionContext
ExecutionContext implementation that delegates all calls to a provided ExecutionContext. Any of
the methods can be overridden by implementations to change the behavior.| Constructor and Description |
|---|
DelegatingExecutionContext(ExecutionContext delegate)
New instance.
|
| Modifier and Type | Method and Description |
|---|---|
BufferAllocator |
bufferAllocator()
Return the
BufferAllocator that can be used to allocate Buffers if needed. |
protected ExecutionContext |
delegate()
Get the
ExecutionContext that this class delegates to. |
ExecutionStrategy |
executionStrategy()
Returns the
ExecutionStrategy associated with this context. |
Executor |
executor()
Get the
Executor that is used to create any asynchronous sources. |
IoExecutor |
ioExecutor()
Get the
IoExecutor that is used to handle the IO. |
public DelegatingExecutionContext(ExecutionContext delegate)
delegate - ExecutionContext to delegate all calls.protected final ExecutionContext delegate()
ExecutionContext that this class delegates to.ExecutionContext that this class delegates to.public BufferAllocator bufferAllocator()
ExecutionContextBufferAllocator that can be used to allocate Buffers if needed.bufferAllocator in interface ExecutionContextBufferAllocator to usepublic IoExecutor ioExecutor()
ExecutionContextIoExecutor that is used to handle the IO.ioExecutor in interface ExecutionContextIoExecutor that is used to handle the.public Executor executor()
ExecutionContextExecutor that is used to create any asynchronous sources.executor in interface ExecutionContextExecutor that is used to create any asynchronous sources.public ExecutionStrategy executionStrategy()
ExecutionContextExecutionStrategy associated with this context.executionStrategy in interface ExecutionContextExecutionStrategy associated with this context.