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