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 Buffer s 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()
ExecutionContext
BufferAllocator
that can be used to allocate Buffer
s if needed.bufferAllocator
in interface ExecutionContext
BufferAllocator
to usepublic IoExecutor ioExecutor()
ExecutionContext
IoExecutor
that is used to handle the IO.ioExecutor
in interface ExecutionContext
IoExecutor
that is used to handle the.public Executor executor()
ExecutionContext
Executor
that is used to create any asynchronous sources.executor
in interface ExecutionContext
Executor
that is used to create any asynchronous sources.public ExecutionStrategy executionStrategy()
ExecutionContext
ExecutionStrategy
associated with this context.executionStrategy
in interface ExecutionContext
ExecutionStrategy
associated with this context.