Class HazelcastSharedDataManager

  extended by com.atlassian.confluence.cluster.hazelcast.shareddata.HazelcastSharedDataManager
All Implemented Interfaces:

public class HazelcastSharedDataManager
extends Object
implements SharedDataManager

A Hazelcast implementation of SharedDataManager


Constructor Summary
HazelcastSharedDataManager(<com.hazelcast.core.HazelcastInstance> hazelcastRef)
Method Summary
 SharedData getSharedData(String name)
          Obtain a SharedDataManager for the given key.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HazelcastSharedDataManager(<com.hazelcast.core.HazelcastInstance> hazelcastRef)
Method Detail


public SharedData getSharedData(String name)
Description copied from interface: SharedDataManager
Obtain a SharedDataManager 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.

Specified by:
getSharedData in interface SharedDataManager

Copyright © 2003–2015 Atlassian. All rights reserved.