public static class PartitionAssignmentServiceSettings.Builder extends ClientSettings.Builder<PartitionAssignmentServiceSettings,PartitionAssignmentServiceSettings.Builder>
Builder for PartitionAssignmentServiceSettings.
Constructors
Builder()
protected Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Builder(PartitionAssignmentServiceSettings settings)
protected Builder(PartitionAssignmentServiceSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
PartitionAssignmentServiceSettings |
Builder(PartitionAssignmentServiceStubSettings.Builder stubSettings)
protected Builder(PartitionAssignmentServiceStubSettings.Builder stubSettings)
Parameter | |
---|---|
Name | Description |
stubSettings |
PartitionAssignmentServiceStubSettings.Builder |
Methods
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
public PartitionAssignmentServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
Note: This method does not support applying settings to streaming methods.
Parameter | |
---|---|
Name | Description |
settingsUpdater |
ApiFunction<Builder<?,?>,Void> |
Returns | |
---|---|
Type | Description |
PartitionAssignmentServiceSettings.Builder |
assignPartitionsSettings()
public StreamingCallSettings.Builder<PartitionAssignmentRequest,PartitionAssignment> assignPartitionsSettings()
Returns the builder for the settings used for calls to assignPartitions.
Returns | |
---|---|
Type | Description |
Builder<PartitionAssignmentRequest,PartitionAssignment> |
build()
public PartitionAssignmentServiceSettings build()
Returns | |
---|---|
Type | Description |
PartitionAssignmentServiceSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
getStubSettingsBuilder()
public PartitionAssignmentServiceStubSettings.Builder getStubSettingsBuilder()
Returns | |
---|---|
Type | Description |
PartitionAssignmentServiceStubSettings.Builder |