public static final class GrpcExecutionStrategies.Builder
extends java.lang.Object
HttpExecutionStrategy
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GrpcExecutionStrategy |
build()
Builds a new
GrpcExecutionStrategy . |
GrpcExecutionStrategies.Builder |
executor(Executor executor)
Specify an
Executor to use. |
GrpcExecutionStrategies.Builder |
offloadAll()
Enable all offloads.
|
GrpcExecutionStrategies.Builder |
offloadNone()
Disable all offloads.
|
GrpcExecutionStrategies.Builder |
offloadReceiveData()
Enables offloading for receiving of data.
|
GrpcExecutionStrategies.Builder |
offloadReceiveMetadata()
Enables offloading for receiving of metadata.
|
GrpcExecutionStrategies.Builder |
offloadSend()
Enables offloading for sending.
|
GrpcExecutionStrategies.Builder |
offloadWithThreadAffinity()
Enable thread affinity while offloading.
|
public GrpcExecutionStrategies.Builder offloadReceiveMetadata()
this
.public GrpcExecutionStrategies.Builder offloadReceiveData()
this
.public GrpcExecutionStrategies.Builder offloadSend()
this
.public GrpcExecutionStrategies.Builder offloadAll()
this
.public GrpcExecutionStrategies.Builder offloadNone()
this
.public GrpcExecutionStrategies.Builder executor(Executor executor)
Executor
to use.executor
- Executor
to use.this
.public GrpcExecutionStrategies.Builder offloadWithThreadAffinity()
this
.public GrpcExecutionStrategy build()
GrpcExecutionStrategy
.GrpcExecutionStrategy
.