Class CacheOnMissEvent<K>

  • All Implemented Interfaces:
    CacheEvent

    public class CacheOnMissEvent<K>
    extends java.lang.Object
    A CacheEvent which informs about a cache miss.
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      CacheOnMissEvent​(java.lang.String cacheName, K cacheKey)  
    • Constructor Detail

      • CacheOnMissEvent

        public CacheOnMissEvent​(java.lang.String cacheName,
                                K cacheKey)
    • Method Detail

      • getEventType

        public CacheEvent.Type getEventType()
        Description copied from interface: CacheEvent
        Returns the type of the Cache event.
        Returns:
        the type of the Cache event
      • getCacheKey

        public K getCacheKey()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCacheName

        public java.lang.String getCacheName()
        Description copied from interface: CacheEvent
        Returns the name of the Cache which has created the event.
        Specified by:
        getCacheName in interface CacheEvent
        Returns:
        the name of the Cache which has created the event
      • getCreationTime

        public java.time.ZonedDateTime getCreationTime()
        Description copied from interface: CacheEvent
        Returns the creation time of Cache event.
        Specified by:
        getCreationTime in interface CacheEvent
        Returns:
        the creation time of Cache event