Class DefaultHazelcastHelper
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected static String
PREFIX
protected static String
PREFIX_CACHE
protected static String
PREFIX_CACHE_REFERENCE
-
Constructor Summary
Constructors Constructor Description DefaultHazelcastHelper(com.atlassian.util.concurrent.Supplier<com.hazelcast.core.HazelcastInstance> instanceSupplier)
DefaultHazelcastHelper(com.hazelcast.core.HazelcastInstance hazelcastInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseSharedDataName()
com.hazelcast.core.IMap
getHazelcastMapForCache(String cacheName)
com.hazelcast.core.IMap
getHazelcastMapForCachedReference(String cacheName)
String
getHazelcastMapNameForCache(String cacheName)
String
getHazelcastMapNameForCachedReference(String cacheName)
-
-
-
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
-
-
Method Detail
-
getHazelcastMapForCache
public com.hazelcast.core.IMap getHazelcastMapForCache(String cacheName)
- Specified by:
getHazelcastMapForCache
in interfaceHazelcastHelper
-
getHazelcastMapForCachedReference
public com.hazelcast.core.IMap getHazelcastMapForCachedReference(String cacheName)
- Specified by:
getHazelcastMapForCachedReference
in interfaceHazelcastHelper
-
getHazelcastMapNameForCache
public String getHazelcastMapNameForCache(String cacheName)
- Specified by:
getHazelcastMapNameForCache
in interfaceHazelcastHelper
-
getHazelcastMapNameForCachedReference
public String getHazelcastMapNameForCachedReference(String cacheName)
- Specified by:
getHazelcastMapNameForCachedReference
in interfaceHazelcastHelper
-
getBaseSharedDataName
public String getBaseSharedDataName()
- Specified by:
getBaseSharedDataName
in interfaceHazelcastHelper
-
-