@Internal public class HazelcastPluginSharedDataStore extends Object implements PluginSharedDataStore
PluginSharedDataStore
.
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.Constructor and Description |
---|
HazelcastPluginSharedDataStore(com.google.common.base.Supplier<com.hazelcast.core.HazelcastInstance> hazelcastRef) |
Modifier and Type | Method and Description |
---|---|
SharedData |
getPluginSharedData(PluginSharedDataKey sharedDataKey,
com.atlassian.plugin.Plugin plugin)
Obtain the stored SharedData instance for the given key and plugin information
|
void |
unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
When a plugin gets uninstalled from the current cluster node, try and clean up.
|
public HazelcastPluginSharedDataStore(com.google.common.base.Supplier<com.hazelcast.core.HazelcastInstance> hazelcastRef)
public SharedData getPluginSharedData(PluginSharedDataKey sharedDataKey, com.atlassian.plugin.Plugin plugin)
PluginSharedDataStore
getPluginSharedData
in interface PluginSharedDataStore
public void unregisterPluginSharedData(com.atlassian.plugin.Plugin plugin)
unregisterPluginSharedData
in interface PluginSharedDataStore
Copyright © 2003–2017 Atlassian. All rights reserved.