Top Description Interfaces Classes Enums
[default module]

Package javax.cache.event


This package contains event listener interfaces.

These may be registered for callback notification of the cache events. The specific interface should be implemented for each event type a callback is desired on.

Event notifications occur synchronously in the line of execution of the calling thread. The calling thread blocks until the listener has completed execution or thrown a javax.cache.event.CacheEntryCreatedListener.

Listeners are invoked after the cache is updated. If the listener throws an javax.cache.event.CacheEntryCreatedListener this will propagate back to the caller but it does not affect the cache update as it already completed before the listener was called.

Authors
Greg Luck, Yannis Cosmadopoulos
Since
1.0

Interface Summary

Modifier and TypeInterface and Description
public interface
CacheEntryCreatedListener<
the type of key
K
,
the type of value
V
>

Invoked after a cache entry is created, or if a batch call is made, after the entries are created.

public interface
CacheEntryEventFilter<
the type of key
K
,
the type of value
V
>

A function that may be used to check CacheEntryEvents prior to being dispatched to CacheEntryListeners.

public interface
CacheEntryExpiredListener<
the type of key
K
,
the type of value
V
>

Invoked if a cache entry or entries are evicted due to expiration.

public interface
CacheEntryListener<
the type of key
K
,
the type of value
V
>

A tagging interface for cache entry listeners.

public interface
CacheEntryRemovedListener<
the type of key
K
,
the type of value
V
>

Invoked if a cache entry is removed, or if a batch call is made, after the entries are removed.

public interface
CacheEntryUpdatedListener<
the type of key
K
,
the type of value
V
>

Invoked if an existing cache entry is updated, or if a batch call is made, after the entries are updated.

Class Summary

Modifier and TypeClass and Description
public abstract class
CacheEntryEvent<
the type of key
K
,
the type of value
V
>

A Cache entry event base class.

public class
CacheEntryListenerException

An exception to indicate a problem has occurred with a listener.

Enum Summary

Modifier and TypeEnum and Description
public enum
EventType

The type of event received by the listener.