public class GlobalRefresher extends Object
GlobalRefresher keeps the cluster-level global config up-to-date.
It works very similar to the KeyValueBucketRefresher, but explicitly has no bucket
level scope. It can be started and stopped, since there might be situations where global config polling is not
needed.
| Constructor and Description |
|---|
GlobalRefresher(ConfigurationProvider provider,
Core core)
Creates a new global refresher.
|
| Modifier and Type | Method and Description |
|---|---|
protected Duration |
pollerInterval()
Allows to override the default poller interval in tests to speed them up.
|
Mono<Void> |
shutdown()
Permanently shuts down this
GlobalRefresher. |
Mono<Void> |
start()
Starts the
GlobalRefresher. |
Mono<Void> |
stop()
Stops the
GlobalRefresher. |
public GlobalRefresher(ConfigurationProvider provider, Core core)
provider - the config provider which should get the config updates proposed.core - the core to send the config commands to.protected Duration pollerInterval()
public Mono<Void> start()
GlobalRefresher.
Refreshing can be started and stopped multiple times until the non-reversible shutdown() is called.
Mono completing when started.public Mono<Void> stop()
GlobalRefresher.
Refreshing can be started and stopped multiple times until the non-reversible shutdown() is called.
Mono completing when stopped.public Mono<Void> shutdown()
GlobalRefresher.Mono completing when shutdown completed.Copyright © 2024 Couchbase, Inc.. All rights reserved.