K
- the key type for the cacheV
- the value type for the cachepublic interface CacheRuntimeConfiguration<K,V> extends CacheConfiguration<K,V>
Modifier and Type | Method and Description |
---|---|
void |
deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
Deregisters a previously registered
CacheEventListener instance. |
default void |
registerCacheEventListener(CacheEventListener<? super K,? super V> listener,
EventOrdering ordering,
EventFiring firing,
EventType eventType,
EventType... eventTypes)
Registers a
CacheEventListener on the cache. |
void |
registerCacheEventListener(CacheEventListener<? super K,? super V> listener,
EventOrdering ordering,
EventFiring firing,
java.util.Set<EventType> forEventTypes)
Registers a
CacheEventListener on the cache. |
void |
updateResourcePools(ResourcePools pools)
Updates the
ResourcePools used by the Cache . |
derive, getClassLoader, getEvictionAdvisor, getExpiry, getExpiryPolicy, getKeyType, getResourcePools, getServiceConfigurations, getValueType
void registerCacheEventListener(CacheEventListener<? super K,? super V> listener, EventOrdering ordering, EventFiring firing, java.util.Set<EventType> forEventTypes)
CacheEventListener
on the cache.
The registered listener will be configured according to the provided EventOrdering
, EventFiring
and EventType
set.
Registering a listener will cause the eventing subsystem to start.
listener
- the listener instance to registerordering
- the EventOrdering
required by this listenerfiring
- the EventFiring
required by this listenerforEventTypes
- the set of EventType
s for which this listener is to be registeredjava.lang.IllegalStateException
- if the listener is already registereddefault void registerCacheEventListener(CacheEventListener<? super K,? super V> listener, EventOrdering ordering, EventFiring firing, EventType eventType, EventType... eventTypes)
CacheEventListener
on the cache.
The registered listener will be configured according to the provided EventOrdering
, EventFiring
and EventType
s.
Registering a listener will cause the eventing subsystem to start.
listener
- the listener instance to registerordering
- the EventOrdering
required by this listenerfiring
- the EventFiring
required by this listenereventType
- the EventType
for which this listener is to be registeredeventTypes
- additional EventType
s for which this listener is to be registeredjava.lang.IllegalStateException
- if the listener is already registeredvoid deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
CacheEventListener
instance.
Deregistering all listeners will cause the eventing subsystem to stop.
listener
- the listener to deregisterjava.lang.IllegalStateException
- if the listener is not registeredvoid updateResourcePools(ResourcePools pools)
ResourcePools
used by the Cache
.pools
- the ResourcePools
that need to be updated