Class CacheOnErrorEvent

java.lang.Object
io.github.resilience4j.cache.event.CacheOnErrorEvent
All Implemented Interfaces:
CacheEvent

public class CacheOnErrorEvent extends Object
A CacheEvent which informs that accessing the cache has caused an exception.
  • Constructor Details

    • CacheOnErrorEvent

      public CacheOnErrorEvent(String cacheName, Throwable throwable)
  • 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
    • getThrowable

      public Throwable getThrowable()
    • toString

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