Class CursorServiceSettings.Builder (1.6.3)

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
NameDescription
clientContextClientContext

Builder(CursorServiceSettings settings)

protected Builder(CursorServiceSettings settings)
Parameter
NameDescription
settingsCursorServiceSettings

Builder(CursorServiceStubSettings.Builder stubSettings)

protected Builder(CursorServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsCursorServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
CursorServiceSettings.Builder

build()

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

commitCursorSettings()

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

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

Returns
TypeDescription
Builder<CommitCursorRequest,CommitCursorResponse>

getStubSettingsBuilder()

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

listPartitionCursorsSettings()

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

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

Returns
TypeDescription
Builder<ListPartitionCursorsRequest,ListPartitionCursorsResponse,ListPartitionCursorsPagedResponse>

streamingCommitCursorSettings()

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

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

Returns
TypeDescription
Builder<StreamingCommitCursorRequest,StreamingCommitCursorResponse>