Package io.servicetalk.http.api
Interface HttpExecutionStrategy
- All Superinterfaces:
ExecutionStrategy
- All Known Subinterfaces:
GrpcExecutionStrategy
- All Known Implementing Classes:
ConnectAndHttpExecutionStrategy
An execution strategy for HTTP client and servers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpExecutionStrategyfrom(ExecutionStrategy strategy) Convert from anyExecutionStrategyto the most appropriate compatible safeHttpExecutionStrategy.default booleanReturnstrueif the instance has offloading for any operation.booleanReturnstrueif data receive offloading is enabled for thisHttpExecutionStrategy.booleanReturnstrueif event offloading is enabled for thisHttpExecutionStrategy.booleanReturnstrueif metadata receive offloading is enabled for thisHttpExecutionStrategy.default booleanReturnstrueif any portion of request/response path is offloaded for thisHttpExecutionStrategy.booleanReturnstrueif send offloading is enabled for thisHttpExecutionStrategy.merge(HttpExecutionStrategy other) Merges the passedHttpExecutionStrategywiththisHttpExecutionStrategyand return the merged result.default HttpExecutionStrategymissing(HttpExecutionStrategy other) Returns an execution strategy which contains only the additional offloads present in other that were not present in this execution strategy.Methods inherited from interface io.servicetalk.transport.api.ExecutionStrategy
isCloseOffloaded, merge
-
Method Details
-
hasOffloads
default boolean hasOffloads()Description copied from interface:ExecutionStrategyReturnstrueif the instance has offloading for any operation.- Specified by:
hasOffloadsin interfaceExecutionStrategy- Returns:
trueif the instance has offloading for any operation.
-
isRequestResponseOffloaded
default boolean isRequestResponseOffloaded()Returnstrueif any portion of request/response path is offloaded for thisHttpExecutionStrategy.- Returns:
trueif any portion of request/response path is offloaded for thisHttpExecutionStrategy.
-
isMetadataReceiveOffloaded
boolean isMetadataReceiveOffloaded()Returnstrueif metadata receive offloading is enabled for thisHttpExecutionStrategy.- Returns:
trueif metadata receive offloading is enabled for thisHttpExecutionStrategy.
-
isDataReceiveOffloaded
boolean isDataReceiveOffloaded()Returnstrueif data receive offloading is enabled for thisHttpExecutionStrategy.- Returns:
trueif data receive offloading is enabled for thisHttpExecutionStrategy.
-
isSendOffloaded
boolean isSendOffloaded()Returnstrueif send offloading is enabled for thisHttpExecutionStrategy.- Returns:
trueif send offloading is enabled for thisHttpExecutionStrategy.
-
isEventOffloaded
boolean isEventOffloaded()Returnstrueif event offloading is enabled for thisHttpExecutionStrategy.- Returns:
trueif event offloading is enabled for thisHttpExecutionStrategy.
-
merge
Merges the passedHttpExecutionStrategywiththisHttpExecutionStrategyand return the merged result.- Parameters:
other-HttpExecutionStrategyto merge withthis.- Returns:
- Merged
HttpExecutionStrategy.
-
missing
Returns an execution strategy which contains only the additional offloads present in other that were not present in this execution strategy.- Parameters:
other- An execution strategy- Returns:
- An execution strategy which contains only the additional offloads present in other that were not present in this execution strategy.
-
from
Convert from anyExecutionStrategyto the most appropriate compatible safeHttpExecutionStrategy.- Parameters:
strategy- The strategy to convert- Returns:
- The provided execution strategy converted to compatible safe
HttpExecutionStrategy.
-