Class AbstractCacheEvent

java.lang.Object
io.github.resilience4j.cache.event.AbstractCacheEvent
All Implemented Interfaces:
CacheEvent
Direct Known Subclasses:
CacheOnErrorEvent, CacheOnHitEvent, CacheOnMissEvent

abstract class AbstractCacheEvent extends Object implements CacheEvent
  • Field Details

    • cacheName

      private final String cacheName
    • creationTime

      private final ZonedDateTime creationTime
  • Constructor Details

    • AbstractCacheEvent

      AbstractCacheEvent(String cacheName)
  • Method Details

    • getCacheName

      public 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 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