public final class GrpcExecutionStrategies
extends Object
GrpcExecutionStrategy.| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcExecutionStrategies.Builder
A builder to build an
GrpcExecutionStrategy. |
| Modifier and Type | Method and Description |
|---|---|
static GrpcExecutionStrategies.Builder |
customStrategyBuilder()
A
GrpcExecutionStrategy that disables all offloads. |
static GrpcExecutionStrategy |
defaultStrategy()
A special default
GrpcExecutionStrategy that offloads all actions unless merged with another strategy
that requires less offloading. |
static GrpcExecutionStrategy |
offloadNever()
A special
HttpExecutionStrategy that disables all offloads on the request-response and transport event
paths. |
public static GrpcExecutionStrategy defaultStrategy()
GrpcExecutionStrategy 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 by
HttpExecutionStrategyInfluencer.requiredOffloads(), which should return
ExecutionStrategy.offloadNone() or ExecutionStrategy.offloadAll() instead.GrpcExecutionStrategy.public static GrpcExecutionStrategy offloadNever()
HttpExecutionStrategy 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 by
HttpExecutionStrategyInfluencer.requiredOffloads(), which should return a custom strategy instead.
When merged with another execution strategy the result is always this strategy.GrpcExecutionStrategy that disables all request-response path offloads.public static GrpcExecutionStrategies.Builder customStrategyBuilder()
GrpcExecutionStrategy that disables all offloads.GrpcExecutionStrategy that disables all offloads.