Top Description Methods
javax.cache.configuration

public Interface CacheEntryListenerConfiguration<K, V>

extends Serializable
Known Direct Implementers
javax.cache.configuration.MutableCacheEntryListenerConfiguration
Type Parameters
<K>
the type of keys
<V>
the type of values
Imports
javax.cache.event.CacheEntryEventFilter, .CacheEntryListener, java.io.Serializable

Defines the configuration requirements for a CacheEntryListener and a Factory for its creation.
Authors
Brian Oliver, Greg Luck
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public Factory<CacheEntryEventFilter<? super K, ? super V>>

Returns:

the Factory for the CacheEntryEventFilter or null if no filtering is required
getCacheEntryEventFilterFactory
()

Obtains the Factory for the CacheEntryEventFilter that should be applied prior to notifying the CacheEntryListener.

public Factory<CacheEntryListener<? super K, ? super V>>
public boolean

Returns:

true if the old value is required by the CacheEntryListener
isOldValueRequired
()

Determines if the old value should be provided to the CacheEntryListener.

public boolean

Returns:

true if the thread that created the event should block
isSynchronous
()

Determines if the thread that caused an event to be created should be blocked (not return from the operation causing the event) until the CacheEntryListener has been notified.

Method Detail

getCacheEntryEventFilterFactoryback to summary
public Factory<CacheEntryEventFilter<? super K, ? super V>> getCacheEntryEventFilterFactory()

Obtains the Factory for the CacheEntryEventFilter that should be applied prior to notifying the CacheEntryListener.

When null no filtering is applied and all appropriate events are notified.

Returns:Factory<CacheEntryEventFilter<? super K, ? super V>>

the Factory for the CacheEntryEventFilter or null if no filtering is required

getCacheEntryListenerFactoryback to summary
public Factory<CacheEntryListener<? super K, ? super V>> getCacheEntryListenerFactory()

Obtains the Factory for the CacheEntryListener.

Returns:Factory<CacheEntryListener<? super K, ? super V>>

the Factory for the CacheEntryListener

isOldValueRequiredback to summary
public boolean isOldValueRequired()

Determines if the old value should be provided to the CacheEntryListener.

Returns:boolean

true if the old value is required by the CacheEntryListener

isSynchronousback to summary
public boolean isSynchronous()

Determines if the thread that caused an event to be created should be blocked (not return from the operation causing the event) until the CacheEntryListener has been notified.

Returns:boolean

true if the thread that created the event should block