Package com.couchbase.client.java
Class CommonOptions<SELF extends CommonOptions<SELF>>
java.lang.Object
com.couchbase.client.java.CommonOptions<SELF>
- Direct Known Subclasses:
AllowQueryingSearchIndexOptions
,AnalyticsOptions
,AnalyzeDocumentOptions
,BuildQueryIndexOptions
,ChangePasswordOptions
,CommonDatastructureOptions
,CommonDurabilityOptions
,CommonHttpOptions
,ConnectLinkAnalyticsOptions
,CreateBucketOptions
,CreateCollectionOptions
,CreateDatasetAnalyticsOptions
,CreateDataverseAnalyticsOptions
,CreateIndexAnalyticsOptions
,CreateLinkAnalyticsOptions
,CreatePrimaryQueryIndexOptions
,CreateQueryIndexOptions
,CreateScopeOptions
,DeployFunctionOptions
,DisallowQueryingSearchIndexOptions
,DisconnectLinkAnalyticsOptions
,DropBucketOptions
,DropCollectionOptions
,DropDatasetAnalyticsOptions
,DropDataverseAnalyticsOptions
,DropDesignDocumentOptions
,DropFunctionOptions
,DropGroupOptions
,DropIndexAnalyticsOptions
,DropLinkAnalyticsOptions
,DropPrimaryQueryIndexOptions
,DropQueryIndexOptions
,DropScopeOptions
,DropSearchIndexOptions
,DropUserOptions
,ExistsOptions
,FlushBucketOptions
,FreezePlanSearchIndexOptions
,FunctionsStatusOptions
,GetAllBucketOptions
,GetAllDatasetsAnalyticsOptions
,GetAllDataversesAnalyticsOptions
,GetAllDesignDocumentsOptions
,GetAllFunctionsOptions
,GetAllGroupsOptions
,GetAllIndexesAnalyticsOptions
,GetAllQueryIndexesOptions
,GetAllReplicasOptions
,GetAllScopesOptions
,GetAllSearchIndexesOptions
,GetAllUsersOptions
,GetAndLockOptions
,GetAndTouchOptions
,GetAnyReplicaOptions
,GetBucketOptions
,GetDesignDocumentOptions
,GetFunctionOptions
,GetGroupOptions
,GetIndexedSearchIndexOptions
,GetLinksAnalyticsOptions
,GetOptions
,GetPendingMutationsAnalyticsOptions
,GetRolesOptions
,GetScopeOptions
,GetSearchIndexOptions
,GetUserOptions
,LookupInAllReplicasOptions
,LookupInAnyReplicaOptions
,LookupInOptions
,PauseFunctionOptions
,PauseIngestSearchIndexOptions
,PublishDesignDocumentOptions
,QueryOptions
,RawManagerOptions
,ReplaceLinkAnalyticsOptions
,ResumeFunctionOptions
,ResumeIngestSearchIndexOptions
,ScanOptions
,SearchOptions
,TouchOptions
,UndeployFunctionOptions
,UnfreezePlanSearchIndexOptions
,UnlockOptions
,UpdateBucketOptions
,UpdateCollectionOptions
,UpsertDesignDocumentOptions
,UpsertFunctionOptions
,UpsertGroupOptions
,UpsertSearchIndexOptions
,UpsertUserOptions
,ViewOptions
,WatchQueryIndexesOptions
Common options that are used by most operations.
- Since:
- 2.0.0
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclientContext
(Map<String, Object> clientContext) Specifies custom, client domain specific context metadata with this operation.parentSpan
(RequestSpan parentSpan) Allows to specify a parent span that should be used on top of this request.retryStrategy
(RetryStrategy retryStrategy) Specifies a customRetryStrategy
for this operation.protected SELF
self()
Allows to return the right options builder instance for child implementations.Specifies a custom per-operation timeout.
-
Constructor Details
-
CommonOptions
public CommonOptions()
-
-
Method Details
-
self
Allows to return the right options builder instance for child implementations. -
timeout
Specifies a custom per-operation timeout.Note: if a custom timeout is provided through this builder, it will override the default set on the environment.
- Parameters:
timeout
- the timeout to use for this operation.- Returns:
- this options builder for chaining purposes.
-
retryStrategy
Specifies a customRetryStrategy
for this operation.Note: if a custom strategy is provided through this builder, it will override the default set on the environment.
- Parameters:
retryStrategy
- the retry strategy to use for this operation.- Returns:
- this options builder for chaining purposes.
-
clientContext
Specifies custom, client domain specific context metadata with this operation.- Parameters:
clientContext
- the client context information as a map.- Returns:
- this options builder for chaining purposes.
-
parentSpan
Allows to specify a parent span that should be used on top of this request.Note that this only has impact when using a tracing implementation that can actually deal with the notion of a parent. You likely want to use this if you want to wire up your application with OpenTracing or OpenTelemetry - use the support separate modules for that.
IMPORTANT: this is a volatile, likely to change API!
- Parameters:
parentSpan
- the parent span for this request.- Returns:
- this options builder for chaining purposes.
-