Package io.servicetalk.http.api
Class DelegatingHttpExecutionContext
java.lang.Object
io.servicetalk.http.api.DelegatingHttpExecutionContext
- All Implemented Interfaces:
HttpExecutionContext
,ExecutionContext<HttpExecutionStrategy>
An implementation of
HttpExecutionContext
that delegates all method calls to another
HttpExecutionContext
.-
Constructor Summary
ConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn theBufferAllocator
that can be used to allocateBuffer
s if needed.protected final HttpExecutionContext
delegate()
Get theHttpExecutionContext
that this class delegates to.Returns theHttpExecutionStrategy
associated with this context.executor()
Get theExecutor
that is used to create any asynchronous sources.Get theIoExecutor
that is used to handle the I/O.
-
Constructor Details
-
DelegatingHttpExecutionContext
Creates a new instance.- Parameters:
delegate
-HttpExecutionContext
to delegate all calls.
-
-
Method Details
-
delegate
Get theHttpExecutionContext
that this class delegates to.- Returns:
- the
HttpExecutionContext
that this class delegates to.
-
executionStrategy
Description copied from interface:HttpExecutionContext
Returns theHttpExecutionStrategy
associated with this context.- Specified by:
executionStrategy
in interfaceExecutionContext<HttpExecutionStrategy>
- Specified by:
executionStrategy
in interfaceHttpExecutionContext
- Returns:
- The
HttpExecutionStrategy
associated with this context.
-
bufferAllocator
Description copied from interface:ExecutionContext
Return theBufferAllocator
that can be used to allocateBuffer
s if needed.- Specified by:
bufferAllocator
in interfaceExecutionContext<HttpExecutionStrategy>
- Returns:
- the
BufferAllocator
to use for allocatingBuffer
s.
-
ioExecutor
Description copied from interface:ExecutionContext
Get theIoExecutor
that is used to handle the I/O.- Specified by:
ioExecutor
in interfaceExecutionContext<HttpExecutionStrategy>
- Returns:
- The
IoExecutor
that is used to handle the I/O.
-
executor
Description copied from interface:ExecutionContext
Get theExecutor
that is used to create any asynchronous sources.- Specified by:
executor
in interfaceExecutionContext<HttpExecutionStrategy>
- Returns:
- The
Executor
that is used to create any asynchronous sources.
-