Class HazelcastPluginSharedDataStore

  • All Implemented Interfaces:
    PluginSharedDataStore

    @Internal
    public class HazelcastPluginSharedDataStore
    extends Object
    implements PluginSharedDataStore
    A Hazelcast-specific implementation of 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.
    Since:
    5.7
    • Constructor Detail

      • HazelcastPluginSharedDataStore

        public HazelcastPluginSharedDataStore​(com.hazelcast.core.HazelcastInstance hazelcastInstance)
        Since:
        7.6
    • Method Detail

      • unregisterPluginSharedData

        public void unregisterPluginSharedData​(com.atlassian.plugin.Plugin plugin)
        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 interface PluginSharedDataStore