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
ConstructorsConstructorDescriptionCreates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn theBufferAllocatorthat can be used to allocateBuffers if needed.protected final HttpExecutionContextdelegate()Get theHttpExecutionContextthat this class delegates to.Returns theHttpExecutionStrategyassociated with this context.executor()Get theExecutorthat is used to create any asynchronous sources.Get theIoExecutorthat is used to handle network transport I/O operations.
-
Constructor Details
-
DelegatingHttpExecutionContext
Creates a new instance.- Parameters:
delegate-HttpExecutionContextto delegate all calls.
-
-
Method Details
-
delegate
Get theHttpExecutionContextthat this class delegates to.- Returns:
- the
HttpExecutionContextthat this class delegates to.
-
executionStrategy
Description copied from interface:HttpExecutionContextReturns theHttpExecutionStrategyassociated with this context.- Specified by:
executionStrategyin interfaceExecutionContext<HttpExecutionStrategy>- Specified by:
executionStrategyin interfaceHttpExecutionContext- Returns:
- The
HttpExecutionStrategyassociated with this context.
-
bufferAllocator
Description copied from interface:ExecutionContextReturn theBufferAllocatorthat can be used to allocateBuffers if needed.- Specified by:
bufferAllocatorin interfaceExecutionContext<HttpExecutionStrategy>- Returns:
- the
BufferAllocatorto use for allocatingBuffers.
-
ioExecutor
Description copied from interface:ExecutionContextGet theIoExecutorthat is used to handle network transport I/O operations.- Specified by:
ioExecutorin interfaceExecutionContext<HttpExecutionStrategy>- Returns:
- The
IoExecutorthat is used to handle network transport I/O operations.
-
executor
Description copied from interface:ExecutionContextGet theExecutorthat is used to create any asynchronous sources.- Specified by:
executorin interfaceExecutionContext<HttpExecutionStrategy>- Returns:
- The
Executorthat is used to create any asynchronous sources.
-