Package io.servicetalk.transport.api
Interface ExecutionStrategy
-
- All Known Subinterfaces:
GrpcExecutionStrategy,HttpExecutionStrategy
- All Known Implementing Classes:
DelegatingHttpExecutionStrategy
public interface ExecutionStrategyAn execution strategy for all transports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Executorexecutor()Returns theExecutor, if any for thisExecutionStrategy.<T> Publisher<T>offloadReceive(Executor fallback, Publisher<T> original)Offloads theoriginalPublisherfor receiving data from the transport.<T> Single<T>offloadReceive(Executor fallback, Single<T> original)Offloads theoriginalSinglefor receiving data from the transport.<T> Publisher<T>offloadSend(Executor fallback, Publisher<T> original)Offloads theoriginalPublisherfor sending data on the transport.<T> Single<T>offloadSend(Executor fallback, Single<T> original)Offloads theoriginalSinglefor sending data on the transport.
-
-
-
Method Detail
-
offloadSend
<T> Single<T> offloadSend(Executor fallback, Single<T> original)
Offloads theoriginalSinglefor sending data on the transport.
-
offloadReceive
<T> Single<T> offloadReceive(Executor fallback, Single<T> original)
Offloads theoriginalSinglefor receiving data from the transport.
-
offloadSend
<T> Publisher<T> offloadSend(Executor fallback, Publisher<T> original)
Offloads theoriginalPublisherfor sending data on the transport.
-
offloadReceive
<T> Publisher<T> offloadReceive(Executor fallback, Publisher<T> original)
Offloads theoriginalPublisherfor receiving data from the transport.
-
executor
@Nullable Executor executor()
Returns theExecutor, if any for thisExecutionStrategy.- Returns:
Executorfor thisExecutionStrategy.nullif none specified.
-
-