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()
Deprecated.
Use
offloadNone() instead. |
static GrpcExecutionStrategy |
offloadNone()
An
GrpcExecutionStrategy that requires no offloads on the request-response path or transport event path. |
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 the actual required offloads.GrpcExecutionStrategy.@Deprecated public static GrpcExecutionStrategy offloadNever()
offloadNone() instead.GrpcExecutionStrategy 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.offloadNone()public static GrpcExecutionStrategy offloadNone()
GrpcExecutionStrategy that requires no offloads on the request-response path or transport event path.
For HttpExecutionStrategyInfluencers that do not block, the
HttpExecutionStrategyInfluencer.requiredOffloads() method should return this value. Unlike
offloadNever(), this strategy merges normally with other execution strategy instances.
GrpcExecutionStrategy that requires no request-response path offloads.offloadNever()public static GrpcExecutionStrategies.Builder customStrategyBuilder()
GrpcExecutionStrategy that disables all offloads.GrpcExecutionStrategy that disables all offloads.