Package io.servicetalk.transport.api
Interface ExecutionContext
-
- All Known Subinterfaces:
GrpcExecutionContext
,HttpExecutionContext
- All Known Implementing Classes:
DefaultExecutionContext
,DefaultHttpExecutionContext
,DelegatingExecutionContext
,DelegatingHttpExecutionContext
,ExecutionContextRule
,ExecutionContextToHttpExecutionContext
public interface ExecutionContext
Context related to execution and allocation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferAllocator
bufferAllocator()
Return theBufferAllocator
that can be used to allocateBuffer
s if needed.ExecutionStrategy
executionStrategy()
Returns theExecutionStrategy
associated with this context.Executor
executor()
Get theExecutor
that is used to create any asynchronous sources.IoExecutor
ioExecutor()
Get theIoExecutor
that is used to handle the IO.
-
-
-
Method Detail
-
bufferAllocator
BufferAllocator bufferAllocator()
Return theBufferAllocator
that can be used to allocateBuffer
s if needed.- Returns:
- the
BufferAllocator
to use
-
ioExecutor
IoExecutor ioExecutor()
Get theIoExecutor
that is used to handle the IO.- Returns:
- The
IoExecutor
that is used to handle the.
-
executor
Executor executor()
Get theExecutor
that is used to create any asynchronous sources.- Returns:
- The
Executor
that is used to create any asynchronous sources.
-
executionStrategy
ExecutionStrategy executionStrategy()
Returns theExecutionStrategy
associated with this context.- Returns:
- The
ExecutionStrategy
associated with this context.
-
-