Class CursorServiceSettings.Builder (1.14.4)

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

Builder for CursorServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > CursorServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(CursorServiceSettings settings)

protected Builder(CursorServiceSettings settings)
Parameter
Name Description
settings CursorServiceSettings

Builder(CursorServiceStubSettings.Builder stubSettings)

protected Builder(CursorServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings CursorServiceStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public CursorServiceSettings.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
CursorServiceSettings.Builder

build()

public CursorServiceSettings build()
Returns
Type Description
CursorServiceSettings
Overrides
Exceptions
Type Description
IOException

commitCursorSettings()

public UnaryCallSettings.Builder<CommitCursorRequest,CommitCursorResponse> commitCursorSettings()

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

Returns
Type Description
Builder<CommitCursorRequest,CommitCursorResponse>

getStubSettingsBuilder()

public CursorServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
CursorServiceStubSettings.Builder

listPartitionCursorsSettings()

public PagedCallSettings.Builder<ListPartitionCursorsRequest,ListPartitionCursorsResponse,CursorServiceClient.ListPartitionCursorsPagedResponse> listPartitionCursorsSettings()

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

Returns
Type Description
Builder<ListPartitionCursorsRequest,ListPartitionCursorsResponse,ListPartitionCursorsPagedResponse>

streamingCommitCursorSettings()

public StreamingCallSettings.Builder<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamingCommitCursorSettings()

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

Returns
Type Description
Builder<StreamingCommitCursorRequest,StreamingCommitCursorResponse>