Interface CacheFetchListener<Q,​V>

  • Type Parameters:
    Q - The type of query used to request data from the cache.
    V - The type of value stored in the cache.
    All Superinterfaces:
    java.util.EventListener

    public interface CacheFetchListener<Q,​V>
    extends java.util.EventListener
    Indicates the implementing class can listen for a value being fetched in a cache.
    Author:
    Garret Wilson
    See Also:
    Cache, CacheFetchEvent
    • Method Detail

      • fetched

        void fetched​(CacheFetchEvent<Q,​V> cacheFetchEvent)
        Called when a value is fetched in the cache.
        Parameters:
        cacheFetchEvent - The event identifying the value fetched.