com.atlassian.confluence.cache.hazelcast
Class ConfluenceHazelcastCache<K,V>
java.lang.Object
com.atlassian.confluence.cache.hazelcast.AbstractHazelcastCache<K,V>
com.atlassian.confluence.cache.hazelcast.ConfluenceHazelcastCache<K,V>
- All Implemented Interfaces:
- com.atlassian.cache.Cache<K,V>, com.atlassian.cache.ManagedCache, ConfigurableCache<K,V>, ConfigurableManagedLockingCache<K,V>, ManagedLockingCache<K,V>
public class ConfluenceHazelcastCache<K,V>
- extends AbstractHazelcastCache<K,V>
Implementation of ConfigurableCache
and ManagedCache
that wraps a Hazelcast IMap
.
Constructor Summary |
ConfluenceHazelcastCache(java.lang.String cacheName,
com.hazelcast.core.IMap<K,V> hazelcastMap,
com.hazelcast.map.MapContainer container,
com.atlassian.cache.CacheLoader<K,V> cacheLoader,
boolean flushable)
|
Methods inherited from class com.atlassian.confluence.cache.hazelcast.AbstractHazelcastCache |
currentExpireAfterAccessMillis, currentExpireAfterWriteMillis, currentMaxEntries, getName, isFlushable, isLocal, isReplicateAsynchronously, setTimeToLive, updateExpireAfterAccess, updateExpireAfterWrite, updateMaxEntries |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceHazelcastCache
public ConfluenceHazelcastCache(java.lang.String cacheName,
com.hazelcast.core.IMap<K,V> hazelcastMap,
com.hazelcast.map.MapContainer container,
com.atlassian.cache.CacheLoader<K,V> cacheLoader,
boolean flushable)
get
public V get(K key)
containsKey
public boolean containsKey(@NotNull
K k)
getKeys
public java.util.Collection<K> getKeys()
put
public void put(K key,
V value)
remove
public void remove(K key)
removeAll
public void removeAll()
putIfAbsent
public V putIfAbsent(K key,
V value)
replace
public boolean replace(K key,
V oldValue,
V newValue)
remove
public boolean remove(K key,
V value)
clear
public void clear()
lock
public void lock(K key,
org.joda.time.Duration leaseTime)
unlock
public void unlock(K key)
isReplicateViaCopy
public boolean isReplicateViaCopy()
Copyright © 2003-2014 Atlassian. All Rights Reserved.