javax.cache.event
Interface CacheEntryListenerRegistration<K,V>

Type Parameters:
K - the type of keys
V - the type of values

public interface CacheEntryListenerRegistration<K,V>

Defines the runtime semantics of a CacheEntryListener.

Author:
Brian Oliver

Method Summary
 CacheEntryEventFilter<? super K,? super V> getCacheEntryFilter()
          Gets the CacheEntryEventFilter that should be applied prior to notifying the CacheEntryListener.
 CacheEntryListener<? super K,? super V> getCacheEntryListener()
          Gets the CacheEntryListener.
 boolean isOldValueRequired()
          Determines if the old value should be provided to the CacheEntryListener.
 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.
 

Method Detail

getCacheEntryListener

CacheEntryListener<? super K,? super V> getCacheEntryListener()
Gets the CacheEntryListener.

Returns:
the CacheEntryListener

isOldValueRequired

boolean isOldValueRequired()
Determines if the old value should be provided to the CacheEntryListener.

Returns:
true if the old value is required by the CacheEntryListener

getCacheEntryFilter

CacheEntryEventFilter<? super K,? super V> getCacheEntryFilter()
Gets the CacheEntryEventFilter that should be applied prior to notifying the CacheEntryListener. When null no filtering is applied and all appropriate events are notified.

Returns:
the CacheEntryEventFilter or null if no filtering is required

isSynchronous

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:
true if the thread that created the event should block


Copyright © 2013. All Rights Reserved.