All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.cache.event.package-info Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
/**
 *  Copyright (c) 2011-2013 Terracotta, Inc.
 *  Copyright (c) 2011-2013 Oracle and/or its affiliates.
 *
 *  All rights reserved. Use is subject to license terms.
 */

/**
 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 {@link javax.cache.event.CacheEntryCreatedListener}.

Listeners are invoked after the cache is updated. If the listener throws an {@link 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. If the cache is transactional, transactions must commit before listeners are called. If an exception is thrown by a listener this does not affect the transaction as the transaction has already completed.

@author Greg Luck @author Yannis Cosmadopoulos @since 1.0 */ package javax.cache.event;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy