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 TypeMethodDescriptionAGrpcExecutionStrategythat disables all offloads.static GrpcExecutionStrategyA special defaultGrpcExecutionStrategythat offloads all actions unless merged with another strategy that requires less offloading.static GrpcExecutionStrategyDeprecated.static GrpcExecutionStrategyAnGrpcExecutionStrategythat requires no offloads on the request-response path or transport event path.
-
Method Details
-
defaultStrategy
A special defaultGrpcExecutionStrategythat 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 specialGrpcExecutionStrategythat 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:
GrpcExecutionStrategythat disables all request-response path offloads.- See Also:
-
offloadNone
AnGrpcExecutionStrategythat requires no offloads on the request-response path or transport event path.For
HttpExecutionStrategyInfluencers that do not block, theHttpExecutionStrategyInfluencer.requiredOffloads()method should return this value. UnlikeoffloadNever(), this strategy merges normally with other execution strategy instances.- Returns:
GrpcExecutionStrategythat requires no request-response path offloads.- See Also:
-
customStrategyBuilder
AGrpcExecutionStrategythat disables all offloads.- Returns:
GrpcExecutionStrategythat disables all offloads.
-
offloadNone()instead.