Package io.servicetalk.grpc.api
Class GrpcExecutionStrategies.Builder
java.lang.Object
io.servicetalk.grpc.api.GrpcExecutionStrategies.Builder
- Enclosing class:
- GrpcExecutionStrategies
A builder to build an
GrpcExecutionStrategy
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newGrpcExecutionStrategy
.Enable all offloads.Enables offloading of close.Enables offloading of events.Disable all offloads.Enables offloading for receiving of data.Enables offloading for receiving of metadata.Enables offloading for sending.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
offloadReceiveMetadata
Enables offloading for receiving of metadata.- Returns:
this
.
-
offloadReceiveData
Enables offloading for receiving of data.- Returns:
this
.
-
offloadSend
Enables offloading for sending.- Returns:
this
.
-
offloadEvent
Enables offloading of events.- Returns:
this
.
-
offloadClose
Enables offloading of close.- Returns:
this
.
-
offloadAll
Enable all offloads.- Returns:
this
.
-
offloadNone
Disable all offloads.- Returns:
this
.
-
build
Builds a newGrpcExecutionStrategy
.- Returns:
- New
GrpcExecutionStrategy
.
-