Interface SharedDataManager
-
- All Known Implementing Classes:
HazelcastSharedDataManager
,NonClusterSharedDataManager
public interface SharedDataManager
Provides facilities to publish shared data across a cluster. Implementations of this interface are available for both clustered ands non-clustered installations - client code can use this interface consistently with both.- Since:
- 5.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull SharedData
getSharedData(String key)
Obtain aSharedDataManager
for the given key.
-
-
-
Method Detail
-
getSharedData
@NonNull SharedData getSharedData(String key)
Obtain aSharedDataManager
for the given key. Data managed via that provider will be shared across all nodes of the cluster.The returned shared data provider makes no consistency guarantees. On a single node cluster, or in a non-clustered installation, strong consistency can be assumed, and in a multi-node cluster a best-effort consistency will be provided. Some implementations may provide strong consistency, others may only provide weak and/or eventual consistency.
The shared data should be persistent as long as at least one node of the cluster remains running. If multiple cluster nodes fail simultaneously, then the data may be lost. Implementations may persist this data even if the whole cluster is restarted, but clients should not assume one way or the other.
-
-