Package io.servicetalk.grpc.api
Class GrpcExecutionStrategies
java.lang.Object
io.servicetalk.grpc.api.GrpcExecutionStrategies
A factory to create different
GrpcExecutionStrategy
.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionAGrpcExecutionStrategy
that disables all offloads.static GrpcExecutionStrategy
A special defaultGrpcExecutionStrategy
that offloads all actions unless merged with another strategy that requires less offloading.static GrpcExecutionStrategy
Deprecated.static GrpcExecutionStrategy
AnGrpcExecutionStrategy
that requires no offloads on the request-response path or transport event path.
-
Method Details
-
defaultStrategy
A special defaultGrpcExecutionStrategy
that offloads all actions unless merged with another strategy that requires less offloading. The intention of this strategy is to provide a safe default if no strategy is specified; it should not be returned byHttpExecutionStrategyInfluencer.requiredOffloads()
which should return the actual required offloads.- Returns:
- Default
GrpcExecutionStrategy
.
-
offloadNever
Deprecated.UseoffloadNone()
instead.A specialGrpcExecutionStrategy
that disables all offloads on the request-response and transport event paths. This strategy is intended to be used only for client and server builders; it should not be returned byHttpExecutionStrategyInfluencer.requiredOffloads()
, which should return a custom strategy instead. When merged with another execution strategy the result is always this strategy.- Returns:
GrpcExecutionStrategy
that disables all request-response path offloads.- See Also:
-
offloadNone
AnGrpcExecutionStrategy
that requires no offloads on the request-response path or transport event path.For
HttpExecutionStrategyInfluencer
s that do not block, theHttpExecutionStrategyInfluencer.requiredOffloads()
method should return this value. UnlikeoffloadNever()
, this strategy merges normally with other execution strategy instances.- Returns:
GrpcExecutionStrategy
that requires no request-response path offloads.- See Also:
-
customStrategyBuilder
AGrpcExecutionStrategy
that disables all offloads.- Returns:
GrpcExecutionStrategy
that disables all offloads.
-
offloadNone()
instead.