Class 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.2
    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)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since:
        7.6
    • Method Detail

      • 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 interface PluginSharedDataStore