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 HttpExecutionStrategy
from
(ExecutionStrategy strategy) Convert from anyExecutionStrategy
to the most appropriate compatible safeHttpExecutionStrategy
.default boolean
Returnstrue
if the instance has offloading for any operation.boolean
Returnstrue
if data receive offloading is enabled for thisHttpExecutionStrategy
.boolean
Returnstrue
if event offloading is enabled for thisHttpExecutionStrategy
.boolean
Returnstrue
if metadata receive offloading is enabled for thisHttpExecutionStrategy
.default boolean
Returnstrue
if any portion of request/response path is offloaded for thisHttpExecutionStrategy
.boolean
Returnstrue
if send offloading is enabled for thisHttpExecutionStrategy
.merge
(HttpExecutionStrategy other) Merges the passedHttpExecutionStrategy
withthis
HttpExecutionStrategy
and return the merged result.default HttpExecutionStrategy
missing
(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:ExecutionStrategy
Returnstrue
if the instance has offloading for any operation.- Specified by:
hasOffloads
in interfaceExecutionStrategy
- Returns:
true
if the instance has offloading for any operation.
-
isRequestResponseOffloaded
default boolean isRequestResponseOffloaded()Returnstrue
if any portion of request/response path is offloaded for thisHttpExecutionStrategy
.- Returns:
true
if any portion of request/response path is offloaded for thisHttpExecutionStrategy
.
-
isMetadataReceiveOffloaded
boolean isMetadataReceiveOffloaded()Returnstrue
if metadata receive offloading is enabled for thisHttpExecutionStrategy
.- Returns:
true
if metadata receive offloading is enabled for thisHttpExecutionStrategy
.
-
isDataReceiveOffloaded
boolean isDataReceiveOffloaded()Returnstrue
if data receive offloading is enabled for thisHttpExecutionStrategy
.- Returns:
true
if data receive offloading is enabled for thisHttpExecutionStrategy
.
-
isSendOffloaded
boolean isSendOffloaded()Returnstrue
if send offloading is enabled for thisHttpExecutionStrategy
.- Returns:
true
if send offloading is enabled for thisHttpExecutionStrategy
.
-
isEventOffloaded
boolean isEventOffloaded()Returnstrue
if event offloading is enabled for thisHttpExecutionStrategy
.- Returns:
true
if event offloading is enabled for thisHttpExecutionStrategy
.
-
merge
Merges the passedHttpExecutionStrategy
withthis
HttpExecutionStrategy
and return the merged result.- Parameters:
other
-HttpExecutionStrategy
to 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 anyExecutionStrategy
to the most appropriate compatible safeHttpExecutionStrategy
.- Parameters:
strategy
- The strategy to convert- Returns:
- The provided execution strategy converted to compatible safe
HttpExecutionStrategy
.
-