com.atlassian.confluence.cache.hazelcast
Class DefaultHazelcastHelper

java.lang.Object
  extended by com.atlassian.confluence.cache.hazelcast.DefaultHazelcastHelper
All Implemented Interfaces:
HazelcastHelper

@Internal
public class DefaultHazelcastHelper
extends Object
implements HazelcastHelper

Utility that allows you to reach the underlying hazelcast instance of confluence for certain actions.

Since:
5.7

Field Summary
protected static String PREFIX
           
protected static String PREFIX_CACHE
           
protected static String PREFIX_CACHE_REFERENCE
           
 
Constructor Summary
DefaultHazelcastHelper(com.atlassian.util.concurrent.Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier)
           
 
Method Summary
 String getBaseSharedDataName()
           
 com.hazelcast.core.IMap getHazelcastMapForCache(String cacheName)
           
 com.hazelcast.core.IMap getHazelcastMapForCachedReference(String cacheName)
           
 String getHazelcastMapNameForCache(String cacheName)
           
 String getHazelcastMapNameForCachedReference(String cacheName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

protected static final String PREFIX
See Also:
Constant Field Values

PREFIX_CACHE

protected static final String PREFIX_CACHE
See Also:
Constant Field Values

PREFIX_CACHE_REFERENCE

protected static final String PREFIX_CACHE_REFERENCE
See Also:
Constant Field Values
Constructor Detail

DefaultHazelcastHelper

public DefaultHazelcastHelper(com.atlassian.util.concurrent.Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier)
Method Detail

getHazelcastMapForCache

public com.hazelcast.core.IMap getHazelcastMapForCache(String cacheName)
Specified by:
getHazelcastMapForCache in interface HazelcastHelper

getHazelcastMapForCachedReference

public com.hazelcast.core.IMap getHazelcastMapForCachedReference(String cacheName)
Specified by:
getHazelcastMapForCachedReference in interface HazelcastHelper

getHazelcastMapNameForCache

public String getHazelcastMapNameForCache(String cacheName)
Specified by:
getHazelcastMapNameForCache in interface HazelcastHelper

getHazelcastMapNameForCachedReference

public String getHazelcastMapNameForCachedReference(String cacheName)
Specified by:
getHazelcastMapNameForCachedReference in interface HazelcastHelper

getBaseSharedDataName

public String getBaseSharedDataName()
Specified by:
getBaseSharedDataName in interface HazelcastHelper


Copyright © 2003–2015 Atlassian. All rights reserved.