|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.RuntimeConfiguration<K,V>
public class RuntimeConfiguration<K,V>
Constructor Summary | |
---|---|
RuntimeConfiguration(CacheConfiguration<K,V> config,
CacheEventNotificationService<K,V> eventNotifier)
|
Method Summary | |
---|---|
boolean |
addCacheConfigurationListener(java.util.List<CacheConfigurationChangeListener> listeners)
adds listeners for cache configuration changes |
void |
deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
Allows for deregistering of a previously registered CacheEventListener instance |
java.lang.ClassLoader |
getClassLoader()
The ClassLoader for this cache. |
EvictionPrioritizer<? super K,? super V> |
getEvictionPrioritizer()
The EvictionPrioritizer comparator. |
EvictionVeto<? super K,? super V> |
getEvictionVeto()
The EvictionVeto predicate function. |
Expiry<? super K,? super V> |
getExpiry()
Get the expiration policy instance for the Cache . |
java.lang.Class<K> |
getKeyType()
The type of the key for the cache. |
ResourcePools |
getResourcePools()
Get the resource pools the Cache can make use of. |
java.util.Collection<ServiceConfiguration<?>> |
getServiceConfigurations()
Not sure whether this should be exposed on this interface really. |
java.lang.Class<V> |
getValueType()
The type of the value held in the cache. |
void |
registerCacheEventListener(CacheEventListener<? super K,? super V> listener,
EventOrdering ordering,
EventFiring firing,
java.util.Set<EventType> forEventTypes)
Allows for registering CacheEventListener on the cache |
boolean |
removeCacheConfigurationListener(CacheConfigurationChangeListener listener)
removes cache configuration listeners |
void |
updateResourcePools(ResourcePools pools)
updates ResourcePools |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeConfiguration(CacheConfiguration<K,V> config, CacheEventNotificationService<K,V> eventNotifier)
Method Detail |
---|
public void updateResourcePools(ResourcePools pools)
CacheRuntimeConfiguration
updateResourcePools
in interface CacheRuntimeConfiguration<K,V>
pools
- the ResourcePools
that need to be updatedpublic java.util.Collection<ServiceConfiguration<?>> getServiceConfigurations()
CacheConfiguration
getServiceConfigurations
in interface CacheConfiguration<K,V>
public java.lang.Class<K> getKeyType()
CacheConfiguration
getKeyType
in interface CacheConfiguration<K,V>
Object.class
is the widest typepublic java.lang.Class<V> getValueType()
CacheConfiguration
getValueType
in interface CacheConfiguration<K,V>
Object.class
is the widest typepublic EvictionVeto<? super K,? super V> getEvictionVeto()
CacheConfiguration
EvictionVeto
predicate function.
Entries which pass this predicate must be ignored by the eviction process.
getEvictionVeto
in interface CacheConfiguration<K,V>
public EvictionPrioritizer<? super K,? super V> getEvictionPrioritizer()
CacheConfiguration
EvictionPrioritizer
comparator.
This comparator function determines the order in which entries are considered for eviction.
getEvictionPrioritizer
in interface CacheConfiguration<K,V>
public java.lang.ClassLoader getClassLoader()
CacheConfiguration
ClassLoader
for this cache. This ClassLoader
will be used to instantiate cache level services
as well as deserializing cache entries when required.
getClassLoader
in interface CacheConfiguration<K,V>
ClassLoader
public Expiry<? super K,? super V> getExpiry()
CacheConfiguration
expiration policy
instance for the Cache
.
getExpiry
in interface CacheConfiguration<K,V>
Expiry
to configurepublic ResourcePools getResourcePools()
CacheConfiguration
resource pools
the Cache
can make use of.
getResourcePools
in interface CacheConfiguration<K,V>
ResourcePools
public boolean addCacheConfigurationListener(java.util.List<CacheConfigurationChangeListener> listeners)
InternalRuntimeConfiguration
addCacheConfigurationListener
in interface InternalRuntimeConfiguration
public boolean removeCacheConfigurationListener(CacheConfigurationChangeListener listener)
InternalRuntimeConfiguration
removeCacheConfigurationListener
in interface InternalRuntimeConfiguration
public void deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
CacheRuntimeConfiguration
CacheEventListener
instance
deregisterCacheEventListener
in interface CacheRuntimeConfiguration<K,V>
listener
- the listener to deregisterpublic void registerCacheEventListener(CacheEventListener<? super K,? super V> listener, EventOrdering ordering, EventFiring firing, java.util.Set<EventType> forEventTypes)
CacheRuntimeConfiguration
CacheEventListener
on the cache
registerCacheEventListener
in interface CacheRuntimeConfiguration<K,V>
listener
- the listener instance to registerordering
- the EventOrdering
to invoke this listenerfiring
- the EventFiring
to invoke this listenerforEventTypes
- the EventType
to notify this listener of
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |