Package io.servicetalk.transport.api
Interface ExecutionContext
-
- All Known Subinterfaces:
GrpcExecutionContext,HttpExecutionContext
- All Known Implementing Classes:
DefaultExecutionContext,DefaultHttpExecutionContext,DelegatingExecutionContext,DelegatingHttpExecutionContext,ExecutionContextRule,ExecutionContextToHttpExecutionContext
public interface ExecutionContextContext related to execution and allocation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferAllocatorbufferAllocator()Return theBufferAllocatorthat can be used to allocateBuffers if needed.ExecutionStrategyexecutionStrategy()Returns theExecutionStrategyassociated with this context.Executorexecutor()Get theExecutorthat is used to create any asynchronous sources.IoExecutorioExecutor()Get theIoExecutorthat is used to handle the IO.
-
-
-
Method Detail
-
bufferAllocator
BufferAllocator bufferAllocator()
Return theBufferAllocatorthat can be used to allocateBuffers if needed.- Returns:
- the
BufferAllocatorto use
-
ioExecutor
IoExecutor ioExecutor()
Get theIoExecutorthat is used to handle the IO.- Returns:
- The
IoExecutorthat is used to handle the.
-
executor
Executor executor()
Get theExecutorthat is used to create any asynchronous sources.- Returns:
- The
Executorthat is used to create any asynchronous sources.
-
executionStrategy
ExecutionStrategy executionStrategy()
Returns theExecutionStrategyassociated with this context.- Returns:
- The
ExecutionStrategyassociated with this context.
-
-