| Modifier and Type | Method and Description |
|---|---|
Core |
CoreContext.core()
Returns the core to which this context belongs.
|
static Core |
Core.create(CoreEnvironment environment,
Authenticator authenticator,
ConnectionString connectionString) |
static Core |
Core.create(CoreEnvironment environment,
Authenticator authenticator,
Set<SeedNode> seedNodes)
Deprecated.
Please use
create(CoreEnvironment, Authenticator, ConnectionString) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
Timer.scheduleForRetry(Core core,
Request<? extends Response> request,
Duration runAfter)
Schedules a request to be retried after the given duration.
|
| Constructor and Description |
|---|
CoreContext(Core core,
long id,
CoreEnvironment env,
Authenticator authenticator)
Creates a new
CoreContext. |
| Modifier and Type | Method and Description |
|---|---|
default Core |
CoreCouchbaseOps.asCore()
Deprecated.
This method goes away after the Core / Protostellar refactor.
For now, it helps components that depend on Core fail with
`FeatureNotAvailableException` when Protostellar is used.
|
| Modifier and Type | Field and Description |
|---|---|
protected Core |
ClassicCoreBaseSearchIndexManager.core |
| Constructor and Description |
|---|
ClassicCoreBaseSearchIndexManager(Core core) |
ClassicCoreClusterSearchIndexManager(Core core) |
ClassicCoreScopeSearchIndexManager(Core core,
CoreBucketAndScope scope) |
| Constructor and Description |
|---|
ClassicCoreSearchOps(Core core,
CoreBucketAndScope scope) |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<Void> |
SearchCapabilityCheck.scopedSearchIndexCapabilityCheck(Core core,
Duration timeout) |
static CompletableFuture<Void> |
SearchCapabilityCheck.vectorSearchCapabilityCheck(Core core,
Duration timeout) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends CoreMutationResult> |
ClassicHelper.maybeWrapWithLegacyDurability(CompletableFuture<T> input,
String key,
CoreDurability durability,
Core core,
KeyValueRequest<?> request)
Helper method to wrap a mutation result to perform legacy durability requirements if needed.
|
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<CoreMutationResult> |
BinaryAccessor.append(Core core,
AppendRequest request,
String key,
CoreKeyspace keyspace,
CoreDurability durability) |
static CompletableFuture<CoreCounterResult> |
BinaryAccessor.decrement(Core core,
DecrementRequest request,
String id,
CoreKeyspace keyspace,
CoreDurability durability) |
static CompletableFuture<CoreCounterResult> |
BinaryAccessor.increment(Core core,
IncrementRequest request,
String id,
CoreKeyspace keyspace,
CoreDurability durability) |
static CompletableFuture<CoreMutationResult> |
BinaryAccessor.prepend(Core core,
PrependRequest request,
String key,
CoreKeyspace keyspace,
CoreDurability durability) |
| Constructor and Description |
|---|
ClassicCoreKvBinaryOps(Core core,
CoreKeyspace keyspace) |
ClassicCoreKvOps(Core core,
CoreKeyspace keyspace) |
| Constructor and Description |
|---|
ClassicCoreBucketManager(Core core) |
ClassicCoreCollectionManagerOps(Core core,
String bucketName) |
| Constructor and Description |
|---|
ClassicCoreQueryOps(Core core) |
EnhancedPreparedStatementStrategy(Core core,
int cacheSize) |
LegacyPreparedStatementStrategy(Core core,
int cacheSize) |
PreparedStatementStrategy(Core core,
int cacheSize) |
| Constructor and Description |
|---|
DefaultConfigurationProvider(Core core,
Set<SeedNode> seedNodes) |
DefaultConfigurationProvider(Core core,
Set<SeedNode> seedNodes,
ConnectionString connectionString)
Creates a new configuration provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected Core |
BaseBucketLoader.core()
Returns the attached
Core to be used by implementations. |
| Constructor and Description |
|---|
ClusterManagerBucketLoader(Core core) |
GlobalLoader(Core core) |
KeyValueBucketLoader(Core core) |
| Constructor and Description |
|---|
ClusterManagerBucketRefresher(ConfigurationProvider provider,
Core core) |
GlobalRefresher(ConfigurationProvider provider,
Core core)
Creates a new global refresher.
|
KeyValueBucketRefresher(ConfigurationProvider provider,
Core core) |
| Modifier and Type | Method and Description |
|---|---|
static Mono<PingResult> |
HealthPinger.ping(Core core,
Optional<Duration> timeout,
RetryStrategy retryStrategy,
Set<ServiceType> serviceTypes,
Optional<String> reportId,
Optional<String> bucketName) |
static Mono<PingResult> |
HealthPinger.ping(Core core,
Optional<Duration> timeout,
RetryStrategy retryStrategy,
Set<ServiceType> serviceTypes,
Optional<String> reportId,
Optional<String> bucketName,
WaitUntilReadyHelper.WaitUntilReadyLogger log)
Performs a service ping against all or (if given) the services provided.
|
static CompletableFuture<Void> |
WaitUntilReadyHelper.waitUntilReady(Core core,
Set<ServiceType> serviceTypes,
Duration timeout,
ClusterState desiredState,
Optional<String> bucketName) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CoreHttpResponse> |
CoreHttpRequest.exec(Core core) |
CompletableFuture<CoreHttpResponse> |
CoreHttpRequest.Builder.exec(Core core) |
| Constructor and Description |
|---|
CoreHttpClient(Core core,
RequestTarget target) |
| Constructor and Description |
|---|
RangeScanOrchestrator(Core core,
CollectionIdentifier collectionIdentifier)
Creates a new
RangeScanOrchestrator which can be shared across calls. |
| Modifier and Type | Field and Description |
|---|---|
protected Core |
CoreViewIndexManager.core |
| Constructor and Description |
|---|
CoreAnalyticsLinkManager(Core core) |
CoreBucketManager(Core core)
Deprecated.
|
CoreEventingFunctionManager(Core core) |
CoreEventingFunctionManager(Core core,
CoreBucketAndScope scope) |
CoreViewIndexManager(Core core,
String bucket) |
| Constructor and Description |
|---|
RequestContext(Core core,
long contextId,
CoreEnvironment environment,
Authenticator authenticator,
Request<? extends Response> request) |
| Modifier and Type | Method and Description |
|---|---|
static <R> CompletableFuture<List<CompletableFuture<R>>> |
ReplicaHelper.getAllReplicasAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
Function<ReplicaHelper.GetReplicaResponse,R> responseMapper)
Reads from replicas or the active node based on the options and returns the results as a list
of futures that might complete or fail.
|
static Flux<ReplicaHelper.GetReplicaResponse> |
ReplicaHelper.getAllReplicasReactive(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan) |
static CompletableFuture<Stream<GetRequest>> |
ReplicaHelper.getAllReplicasRequests(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Map<String,Object> clientContext,
RetryStrategy retryStrategy,
Duration timeout,
RequestSpan parent)
Helper method to assemble a stream of requests to the active and all replicas
|
static <R> CompletableFuture<R> |
ReplicaHelper.getAnyReplicaAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
Function<ReplicaHelper.GetReplicaResponse,R> responseMapper) |
static <R> CompletableFuture<List<CompletableFuture<R>>> |
ReplicaHelper.lookupInAllReplicasAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
List<CoreSubdocGetCommand> commands,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
Function<CoreSubdocGetResult,R> responseMapper)
Reads from replicas or the active node based on the options and returns the results as a list
of futures that might complete or fail.
|
static Flux<CoreSubdocGetResult> |
ReplicaHelper.lookupInAllReplicasReactive(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
List<CoreSubdocGetCommand> commands,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan) |
static CompletableFuture<Stream<SubdocGetRequest>> |
ReplicaHelper.lookupInAllReplicasRequests(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
List<CoreSubdocGetCommand> commands,
Map<String,Object> clientContext,
RetryStrategy retryStrategy,
Duration timeout,
RequestSpan parent)
Helper method to assemble a stream of requests to the active and all replicas
|
static <R> CompletableFuture<R> |
ReplicaHelper.lookupInAnyReplicaAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
List<CoreSubdocGetCommand> commands,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
Function<CoreSubdocGetResult,R> responseMapper) |
| Modifier and Type | Method and Description |
|---|---|
Core |
CoreTransactionsReactive.core() |
Core |
CoreTransactionAttemptContext.core() |
| Constructor and Description |
|---|
CoreTransactionAttemptContext(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan,
CoreTransactionAttemptContextHooks hooks) |
CoreTransactionsReactive(Core core,
CoreTransactionsConfig config) |
| Modifier and Type | Method and Description |
|---|---|
TransactionsCleaner |
CleanerFactory.create(Core core) |
ClientRecord |
ClientRecordFactoryMock.create(Core core) |
ClientRecord |
ClientRecordFactory.create(Core core) |
TransactionsCleaner |
CleanerMockFactory.create(Core core) |
| Constructor and Description |
|---|
ClientRecord(Core core) |
CoreTransactionsCleanup(Core core,
CoreTransactionsConfig config) |
LostCleanupDistributed(Core core,
CoreTransactionsConfig config,
Supplier<TransactionsCleaner> cleanerSupplier) |
TransactionsCleaner(Core core,
CleanerHooks hooks) |
| Modifier and Type | Method and Description |
|---|---|
static Mono<Void> |
ForwardCompatibility.check(Core core,
ForwardCompatibilityStage fc,
Optional<ForwardCompatibility> forwardCompatibility,
CoreTransactionLogger logger,
Supported supported)
Returns empty if it's ok to continue, otherwise an error:
|
| Modifier and Type | Method and Description |
|---|---|
CoreTransactionAttemptContext |
TransactionAttemptContextFactory.create(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan) |
static Duration |
OptionsUtil.kvTimeoutMutating(Core core)
The timeout to use for important mutating KV operations.
|
static Duration |
OptionsUtil.kvTimeoutNonMutating(Core core)
The timeout to use for non-mutating KV operations (or mutating operations that aren't important enough to
justify durability.)
|
| Modifier and Type | Method and Description |
|---|---|
CoreTransactionAttemptContext |
TestTransactionAttemptContextFactory.create(Core core,
CoreTransactionContext overall,
CoreMergedTransactionConfig config,
String attemptId,
CoreTransactionsReactive parent,
Optional<SpanWrapper> parentSpan) |
static Mono<InsertResponse> |
TransactionKVHandler.insert(Core core,
CollectionIdentifier collectionIdentifier,
String id,
byte[] transcodedContent,
int flags,
Duration timeout,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan) |
static Mono<SubdocGetResponse> |
TransactionKVHandler.lookupIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean accessDeleted,
Map<String,Object> clientContext,
SpanWrapper pspan,
List<SubdocGetRequest.Command> commands) |
static Mono<SubdocMutateResponse> |
TransactionKVHandler.mutateIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean insertDocument,
boolean upsertDocument,
boolean reviveDocument,
boolean accessDeleted,
boolean createAsDeleted,
long cas,
int userFlags,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper span,
List<SubdocMutateRequest.Command> commands) |
static Mono<SubdocMutateResponse> |
TransactionKVHandler.mutateIn(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
boolean insertDocument,
boolean upsertDocument,
boolean reviveDocument,
boolean accessDeleted,
boolean createAsDeleted,
long cas,
int userFlags,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan,
List<SubdocMutateRequest.Command> commands,
CoreTransactionLogger logger) |
static Mono<RemoveResponse> |
TransactionKVHandler.remove(Core core,
CollectionIdentifier collectionIdentifier,
String id,
Duration timeout,
long cas,
Optional<DurabilityLevel> durabilityLevel,
Map<String,Object> clientContext,
SpanWrapper pspan) |
| Modifier and Type | Method and Description |
|---|---|
static Mono<BucketConfig> |
BucketConfigUtil.waitForBucketConfig(Core core,
String bucketName,
Duration timeout)
A bucket config can be null while the bucket has not been opened.
|
static Mono<Map<ServiceType,Set<ClusterCapabilities>>> |
ClusterCapabilitiesUtil.waitForClusterCapabilities(Core core,
Duration timeout) |
static void |
ConsistencyUtil.waitUntilBucketDropped(Core core,
String name) |
static void |
ConsistencyUtil.waitUntilBucketPresent(Core core,
String name) |
static void |
ConsistencyUtil.waitUntilCollectionDropped(Core core,
String bucketName,
String scopeName,
String collectionName) |
static void |
ConsistencyUtil.waitUntilCollectionPresent(Core core,
String bucketName,
String scopeName,
String collectionName) |
static void |
ConsistencyUtil.waitUntilDesignDocumentDropped(Core core,
String bucketName,
String designDocument) |
static void |
ConsistencyUtil.waitUntilDesignDocumentPresent(Core core,
String bucketName,
String designDocument) |
static void |
ConsistencyUtil.waitUntilGroupDropped(Core core,
String name) |
static void |
ConsistencyUtil.waitUntilGroupPresent(Core core,
String name) |
static void |
ConsistencyUtil.waitUntilScopeDropped(Core core,
String bucketName,
String scopeName) |
static void |
ConsistencyUtil.waitUntilScopePresent(Core core,
String bucketName,
String scopeName) |
static void |
ConsistencyUtil.waitUntilSearchIndexDropped(Core core,
String indexName) |
static void |
ConsistencyUtil.waitUntilSearchIndexPresent(Core core,
String indexName) |
static void |
ConsistencyUtil.waitUntilUserDropped(Core core,
String domain,
String name) |
static void |
ConsistencyUtil.waitUntilUserPresent(Core core,
String domain,
String name) |
static void |
ConsistencyUtil.waitUntilViewDropped(Core core,
String bucketName,
String designDocument,
String viewName) |
static void |
ConsistencyUtil.waitUntilViewPresent(Core core,
String bucketName,
String designDocument,
String viewName) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.