Interface BucketRefresher
- All Known Implementing Classes:
ClusterManagerBucketRefresher,KeyValueBucketRefresher
public interface BucketRefresher
The
BucketRefresher is responsible to keep the configurations up to date after the initial
bootstrap/load.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionderegister(String name) Deregisters a bucket from refreshing (stopping the refresh).voidmarkTainted(String name) Marks the bucket as tainted, which will change the behavior of the refresher.voidmarkUntainted(String name) Marks the bucket as untainted, which will change the behavior of the refresher.Registers a bucket for refreshing.Returns the names of all registered buckets.shutdown()Permanently shuts down the refresher.
-
Method Details
-
register
Registers a bucket for refreshing.- Parameters:
name- the name of the bucket.- Returns:
- a
Monoonce complete.
-
deregister
Deregisters a bucket from refreshing (stopping the refresh).- Parameters:
name- the name of the bucket.- Returns:
- a
Monoonce complete.
-
registered
Returns the names of all registered buckets.- Returns:
- all registered buckets.
-
markTainted
Marks the bucket as tainted, which will change the behavior of the refresher.A config is marked as tainted during rebalance, which usually leads to shorter intervals of checking if a new configuration exists (depending of the refresher impl).
- Parameters:
name- the name of the bucket.
-
markUntainted
Marks the bucket as untainted, which will change the behavior of the refresher.A config is marked as tainted during rebalance, which usually leads to shorter intervals of checking if a new configuration exists (depending of the refresher impl).
- Parameters:
name- the name of the bucket.
-
shutdown
Permanently shuts down the refresher.- Returns:
- a
Monoonce complete.
-