Interface Publisher.Cached<V>
- Type Parameters:
V
- value type
- All Superinterfaces:
Publisher<V>
A publisher that caches the last value received.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.configurate.reactive.Publisher
Publisher.Cached<V>
-
Method Summary
-
Method Details
-
get
Get the last cached value.- Returns:
- latest cached value
- Since:
- 4.0.0
-
submit
Directly submit a value to be the current cached value.This will be passed on to downstream subscribers.
- Parameters:
value
- new value- Since:
- 4.0.0
-