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

Type Parameters:
K - the type of keys maintained by the associated cache
V - the type of values maintained by the associated cache

public interface CacheEntryEventFilter<K,V>

A filter which may be used to check CacheEntryEvents prior to being dispatched to CacheEntryListeners.

Since:
1.0
Author:
Greg Luck, Brian Oliver

Method Summary
 boolean evaluate(CacheEntryEvent<? extends K,? extends V> event)
          Evaluates specified CacheEntryEvent.
 

Method Detail

evaluate

boolean evaluate(CacheEntryEvent<? extends K,? extends V> event)
                 throws CacheEntryListenerException
Evaluates specified CacheEntryEvent.

Parameters:
event - the event that occurred
Returns:
true if the evaluation passes, otherwise false. The effect of returning true is that listener will be invoked
Throws:
CacheEntryListenerException - if there is problem executing the listener


Copyright © 2013. All Rights Reserved.