Annotation Type PersistenceAvailabilityChanged
@Retention(RUNTIME) @Target(METHOD) public @interface PersistenceAvailabilityChanged
Use this annotation on methods that require notification when the availability of the PersistenceManager changes. When Cache stores are configured, but the connection to at least one store is lost, the PersistenceManager becomes unavailable. As a result,
StoreUnavailableExceptionis thrown on all read/write operations that require the PersistenceManager until all stores become available again. Methods that use this annotation should be public and take one parameter,
IncorrectListenerExceptionis thrown when registering your cache listener. Locking: notification is performed WITH locks on the given key. If the listener throws any exceptions, the call aborts. No other listeners are called. Any transactions in progress are rolled back.
- Ryan Emerson
- See Also: