Package io.servicetalk.http.api
Class ExecutionContextToHttpExecutionContext
- java.lang.Object
-
- io.servicetalk.http.api.ExecutionContextToHttpExecutionContext
-
- All Implemented Interfaces:
HttpExecutionContext,ExecutionContext
public class ExecutionContextToHttpExecutionContext extends java.lang.Object implements HttpExecutionContext
-
-
Constructor Summary
Constructors Constructor Description ExecutionContextToHttpExecutionContext(ExecutionContext delegate, HttpExecutionStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferAllocatorbufferAllocator()Return theBufferAllocatorthat can be used to allocateBuffers if needed.HttpExecutionStrategyexecutionStrategy()Returns theHttpExecutionStrategyassociated with this context.Executorexecutor()Get theExecutorthat is used to create any asynchronous sources.IoExecutorioExecutor()Get theIoExecutorthat is used to handle the IO.
-
-
-
Constructor Detail
-
ExecutionContextToHttpExecutionContext
public ExecutionContextToHttpExecutionContext(ExecutionContext delegate, HttpExecutionStrategy strategy)
-
-
Method Detail
-
bufferAllocator
public BufferAllocator bufferAllocator()
Description copied from interface:ExecutionContextReturn theBufferAllocatorthat can be used to allocateBuffers if needed.- Specified by:
bufferAllocatorin interfaceExecutionContext- Returns:
- the
BufferAllocatorto use
-
ioExecutor
public IoExecutor ioExecutor()
Description copied from interface:ExecutionContextGet theIoExecutorthat is used to handle the IO.- Specified by:
ioExecutorin interfaceExecutionContext- Returns:
- The
IoExecutorthat is used to handle the.
-
executor
public Executor executor()
Description copied from interface:ExecutionContextGet theExecutorthat is used to create any asynchronous sources.- Specified by:
executorin interfaceExecutionContext- Returns:
- The
Executorthat is used to create any asynchronous sources.
-
executionStrategy
public HttpExecutionStrategy executionStrategy()
Description copied from interface:HttpExecutionContextReturns theHttpExecutionStrategyassociated with this context.- Specified by:
executionStrategyin interfaceExecutionContext- Specified by:
executionStrategyin interfaceHttpExecutionContext- Returns:
- The
HttpExecutionStrategyassociated with this context.
-
-