|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cluster.nonclustered.NonClusterSharedDataManager
@Internal public final class NonClusterSharedDataManager
An implementation of SharedDataManager for use when no clustering
is configured. It provides trivial in-memory data structures.
| Constructor Summary | |
|---|---|
NonClusterSharedDataManager()
|
|
| Method Summary | |
|---|---|
SharedData |
getPluginSharedData(PluginSharedDataKey sharedDataKey,
com.atlassian.plugin.Plugin plugin)
Obtain the stored SharedData instance for the given key and plugin information |
SharedData |
getSharedData(String name)
Obtain a SharedDataManager for the given key. |
void |
unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
Unregisters all shared data for the specific version of the given plugin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonClusterSharedDataManager()
| Method Detail |
|---|
public SharedData getPluginSharedData(PluginSharedDataKey sharedDataKey,
com.atlassian.plugin.Plugin plugin)
PluginSharedDataStore
getPluginSharedData in interface PluginSharedDataStorepublic void unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
PluginSharedDataStore
unregisterPluginSharedData in interface PluginSharedDataStorepublic SharedData getSharedData(String name)
SharedDataManagerSharedDataManager 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.
getSharedData in interface SharedDataManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||