Class PartitionAssignmentServiceSettings.Builder (1.5.5)

public static class PartitionAssignmentServiceSettings.Builder extends ClientSettings.Builder<PartitionAssignmentServiceSettings,PartitionAssignmentServiceSettings.Builder>

Builder for PartitionAssignmentServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > PartitionAssignmentServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(PartitionAssignmentServiceSettings settings)

protected Builder(PartitionAssignmentServiceSettings settings)
Parameter
NameDescription
settingsPartitionAssignmentServiceSettings

Builder(PartitionAssignmentServiceStubSettings.Builder stubSettings)

protected Builder(PartitionAssignmentServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsPartitionAssignmentServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
PartitionAssignmentServiceSettings.Builder

assignPartitionsSettings()

public StreamingCallSettings.Builder<PartitionAssignmentRequest,PartitionAssignment> assignPartitionsSettings()

Returns the builder for the settings used for calls to assignPartitions.

Returns
TypeDescription
Builder<PartitionAssignmentRequest,PartitionAssignment>

build()

public PartitionAssignmentServiceSettings build()
Returns
TypeDescription
PartitionAssignmentServiceSettings
Overrides Exceptions
TypeDescription
IOException

getStubSettingsBuilder()

public PartitionAssignmentServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
PartitionAssignmentServiceStubSettings.Builder