org.ehcache
Class UserManagedCacheBuilder<K,V,T extends UserManagedCache<K,V>>

java.lang.Object
  extended by org.ehcache.UserManagedCacheBuilder<K,V,T>

public class UserManagedCacheBuilder<K,V,T extends UserManagedCache<K,V>>
extends java.lang.Object


Constructor Summary
UserManagedCacheBuilder(java.lang.Class<K> keyType, java.lang.Class<V> valueType)
           
 
Method Summary
 T build(boolean init)
           
 UserManagedCacheBuilder<K,V,T> identifier(java.lang.String identifier)
           
 UserManagedCacheBuilder<K,V,T> loadingAndWritingWith(CacheLoaderWriter<? super K,V> cacheLoaderWriter)
           
static
<K,V,T extends UserManagedCache<K,V>>
UserManagedCacheBuilder<K,V,T>
newUserManagedCacheBuilder(java.lang.Class<K> keyType, java.lang.Class<V> valueType)
           
 UserManagedCacheBuilder<K,V,T> prioritizeEviction(EvictionPrioritizer<? super K,? super V> criteria)
           
 UserManagedCacheBuilder<K,V,T> using(Service service)
           
 UserManagedCacheBuilder<K,V,T> using(ServiceCreationConfiguration<?> serviceConfiguration)
           
 UserManagedCacheBuilder<K,V,T> vetoEviction(EvictionVeto<? super K,? super V> predicate)
           
<N extends T>
UserManagedCacheBuilder<K,V,N>
with(UserManagedCacheConfiguration<K,V,N> cfg)
           
 UserManagedCacheBuilder<K,V,T> withCacheEvents(CacheEventDispatcher<K,V> cacheEventNotificationService)
           
 UserManagedCacheBuilder<K,V,T> withClassLoader(java.lang.ClassLoader classLoader)
           
 UserManagedCacheBuilder<K,V,T> withExpiry(Expiry<K,V> expiry)
           
 UserManagedCacheBuilder<K,V,T> withResourcePools(ResourcePools resourcePools)
           
 UserManagedCacheBuilder<K,V,T> withResourcePools(ResourcePoolsBuilder resourcePoolsBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagedCacheBuilder

public UserManagedCacheBuilder(java.lang.Class<K> keyType,
                               java.lang.Class<V> valueType)
Method Detail

build

public final T build(boolean init)
                                            throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

with

public final <N extends T> UserManagedCacheBuilder<K,V,N> with(UserManagedCacheConfiguration<K,V,N> cfg)

identifier

public final UserManagedCacheBuilder<K,V,T> identifier(java.lang.String identifier)

vetoEviction

public final UserManagedCacheBuilder<K,V,T> vetoEviction(EvictionVeto<? super K,? super V> predicate)

prioritizeEviction

public final UserManagedCacheBuilder<K,V,T> prioritizeEviction(EvictionPrioritizer<? super K,? super V> criteria)

loadingAndWritingWith

public final UserManagedCacheBuilder<K,V,T> loadingAndWritingWith(CacheLoaderWriter<? super K,V> cacheLoaderWriter)

withClassLoader

public final UserManagedCacheBuilder<K,V,T> withClassLoader(java.lang.ClassLoader classLoader)

withExpiry

public final UserManagedCacheBuilder<K,V,T> withExpiry(Expiry<K,V> expiry)

withCacheEvents

public final UserManagedCacheBuilder<K,V,T> withCacheEvents(CacheEventDispatcher<K,V> cacheEventNotificationService)

withResourcePools

public final UserManagedCacheBuilder<K,V,T> withResourcePools(ResourcePools resourcePools)

withResourcePools

public final UserManagedCacheBuilder<K,V,T> withResourcePools(ResourcePoolsBuilder resourcePoolsBuilder)

newUserManagedCacheBuilder

public static <K,V,T extends UserManagedCache<K,V>> UserManagedCacheBuilder<K,V,T> newUserManagedCacheBuilder(java.lang.Class<K> keyType,
                                                                                                              java.lang.Class<V> valueType)

using

public UserManagedCacheBuilder<K,V,T> using(Service service)

using

public UserManagedCacheBuilder<K,V,T> using(ServiceCreationConfiguration<?> serviceConfiguration)