org.smallmind.quorum.cache.indigenous
Class UnorderedCache<K,V,E extends CacheEntry<V>>

java.lang.Object
  extended by org.smallmind.quorum.cache.LockingCacheEnforcer<K,V>
      extended by org.smallmind.quorum.cache.indigenous.AbstractCache<K,V,E>
          extended by org.smallmind.quorum.cache.indigenous.UnorderedCache<K,V,E>
All Implemented Interfaces:
LockingCache<K,V>

public class UnorderedCache<K,V,E extends CacheEntry<V>>
extends AbstractCache<K,V,E>


Constructor Summary
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource)
           
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource, CacheExpirationPolicy<E> cacheExpirationPolicy)
           
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource, CacheExpirationPolicy<E> cacheExpirationPolicy, int initialCapacity, float loadFactor, int concurrencyLevel)
           
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource, CacheExpirationPolicy<E> cacheExpirationPolicy, int initialCapacity, float loadFactor, int concurrencyLevel, long externalLockTimeout)
           
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource, int initialCapacity, float loadFactor, int concurrencyLevel)
           
UnorderedCache(String cacheName, CacheSource<K,V,E> cacheSource, int initialCapacity, float loadFactor, int concurrencyLevel, long externalLockTimeout)
           
 
Method Summary
 V get(KeyLock keyLock, K key, Object... parameters)
           
 V remove(KeyLock keyLock, K key)
           
 
Methods inherited from class org.smallmind.quorum.cache.indigenous.AbstractCache
clear, close, createNewEntry, exists, expireEntry, getCacheName, getExistingEntry, getKeyIterator, implantReference, isClosed, put, putIfAbsent, retrieveEntry, size, validate
 
Methods inherited from class org.smallmind.quorum.cache.LockingCacheEnforcer
executeLockedCallback, gateKey, getLockTimeout, getStripeLockArray, lock, lockStripe, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.smallmind.quorum.cache.LockingCache
executeLockedCallback, getLockTimeout, lock, unlock
 

Constructor Detail

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource)
               throws CacheException
Throws:
CacheException

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource,
                      int initialCapacity,
                      float loadFactor,
                      int concurrencyLevel)
               throws CacheException
Throws:
CacheException

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource,
                      int initialCapacity,
                      float loadFactor,
                      int concurrencyLevel,
                      long externalLockTimeout)
               throws CacheException
Throws:
CacheException

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource,
                      CacheExpirationPolicy<E> cacheExpirationPolicy)
               throws CacheException
Throws:
CacheException

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource,
                      CacheExpirationPolicy<E> cacheExpirationPolicy,
                      int initialCapacity,
                      float loadFactor,
                      int concurrencyLevel)
               throws CacheException
Throws:
CacheException

UnorderedCache

public UnorderedCache(String cacheName,
                      CacheSource<K,V,E> cacheSource,
                      CacheExpirationPolicy<E> cacheExpirationPolicy,
                      int initialCapacity,
                      float loadFactor,
                      int concurrencyLevel,
                      long externalLockTimeout)
               throws CacheException
Throws:
CacheException
Method Detail

remove

public V remove(KeyLock keyLock,
                K key)
Specified by:
remove in interface LockingCache<K,V>
Specified by:
remove in class AbstractCache<K,V,E extends CacheEntry<V>>

get

public V get(KeyLock keyLock,
             K key,
             Object... parameters)
      throws CacheException
Specified by:
get in interface LockingCache<K,V>
Specified by:
get in class AbstractCache<K,V,E extends CacheEntry<V>>
Throws:
CacheException


Copyright © 2012. All Rights Reserved.