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 Type Method Description Mono<Void>deregister(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.Mono<Void>register(String name)Registers a bucket for refreshing.Mono<Void>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.
-
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.
-