Annotation Type PersistenceAvailabilityChanged


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface PersistenceAvailabilityChanged
    This annotation should be used on methods that need to be notified 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. This results in a StoreUnavailableException being thrown on all read/write operations which require the PersistenceManager until all stores once again become available.

    Methods annotated with this annotation should be public and take in a single parameter, a CacheEntryActivatedEvent otherwise an IncorrectListenerException will be thrown when registering your cache listener. Locking: notification is performed WITH locks on the given key.

    Any exceptions thrown by the listener will abort the call. Any other listeners not yet called will not be called, and any transactions in progress will be rolled back.

    Since:
    9.3
    Author:
    Ryan Emerson
    See Also:
    Listener