Class HazelcastPluginSharedDataStore
- java.lang.Object
-
- com.atlassian.confluence.cluster.hazelcast.shareddata.HazelcastPluginSharedDataStore
-
- All Implemented Interfaces:
PluginSharedDataStore
@Internal @Deprecated(since="8.2", forRemoval=true) public class HazelcastPluginSharedDataStore extends Object implements PluginSharedDataStore
Deprecated, for removal: This API element is subject to removal in a future version.since 8.2A Hazelcast-specific implementation ofPluginSharedDataStore
. Use a combination of distributed collections to keep the shared data synchronized between cluster nodes, and to record which plugins are using which shared data.- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description HazelcastPluginSharedDataStore(com.hazelcast.core.HazelcastInstance hazelcastInstance)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SharedData
getPluginSharedData(PluginSharedDataKey sharedDataKey, com.atlassian.plugin.Plugin plugin)
Deprecated, for removal: This API element is subject to removal in a future version.Obtain the stored SharedData instance for the given key and plugin informationvoid
unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
Deprecated, for removal: This API element is subject to removal in a future version.When a plugin gets uninstalled from the current cluster node, try and clean up.
-
-
-
Method Detail
-
getPluginSharedData
public SharedData getPluginSharedData(PluginSharedDataKey sharedDataKey, com.atlassian.plugin.Plugin plugin)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PluginSharedDataStore
Obtain the stored SharedData instance for the given key and plugin information- Specified by:
getPluginSharedData
in interfacePluginSharedDataStore
-
unregisterPluginSharedData
public void unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
Deprecated, for removal: This API element is subject to removal in a future version.When a plugin gets uninstalled from the current cluster node, try and clean up. If other nodes are still using the shared data, then we don't do anything, but if this is the last cluster node to unregister, then we clear the shared data map to prevent a memory leak. Note that Hazelcast des not allow us to remove the actual shared map itself, so we have to settle for just removing its contents.- Specified by:
unregisterPluginSharedData
in interfacePluginSharedDataStore
-
-