public final class DefaultHttpExecutionContext extends java.lang.Object implements HttpExecutionContext
HttpExecutionContext.| Constructor and Description |
|---|
DefaultHttpExecutionContext(BufferAllocator bufferAllocator,
IoExecutor ioExecutor,
Executor executor,
HttpExecutionStrategy executionStrategy)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
BufferAllocator |
bufferAllocator()
Return the
BufferAllocator that can be used to allocate Buffers if needed. |
HttpExecutionStrategy |
executionStrategy()
Returns the
HttpExecutionStrategy 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 DefaultHttpExecutionContext(BufferAllocator bufferAllocator, IoExecutor ioExecutor, Executor executor, HttpExecutionStrategy executionStrategy)
bufferAllocator - The BufferAllocator to use for bufferAllocator().ioExecutor - The IoExecutor to use for ioExecutor().executor - The Executor to use for executor().executionStrategy - HttpExecutionStrategy to use for executionStrategy().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 HttpExecutionStrategy executionStrategy()
HttpExecutionContextHttpExecutionStrategy associated with this context.executionStrategy in interface HttpExecutionContextexecutionStrategy in interface ExecutionContextHttpExecutionStrategy associated with this context.