- All Superinterfaces:
Supplier<Optional<ClusterState>>
- All Known Implementing Classes:
SafeClusterStateSupplier
Utility to access
ClusterState
only when it is "ready", with a fallback if it's not. The definition of "ready" is left to the
class implementations.-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> T
withCurrentClusterState
(Function<ClusterState, T> clusterStateFunction, T fallbackIfNotReady)
-
Method Details
-
withCurrentClusterState
default <T> T withCurrentClusterState(Function<ClusterState, T> clusterStateFunction, T fallbackIfNotReady)
-