Class CacheOnMissEvent<K>

java.lang.Object
io.github.resilience4j.cache.event.AbstractCacheEvent
io.github.resilience4j.cache.event.CacheOnMissEvent<K>
All Implemented Interfaces:
CacheEvent

public class CacheOnMissEvent<K> extends AbstractCacheEvent
A CacheEvent which informs about a cache miss.
  • Field Details

    • cacheKey

      private final K cacheKey
  • Constructor Details

    • CacheOnMissEvent

      public CacheOnMissEvent(String cacheName, K cacheKey)
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object