Interface CacheEvent

All Known Implementing Classes:
CacheOnErrorEvent, CacheOnHitEvent, CacheOnMissEvent

public interface CacheEvent
An event which is created by a CircuitBreaker.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  CacheEvent.Type
    Event types which are created by a CircuitBreaker.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getCacheName()
    Returns the name of the Cache which has created the event.
    java.time.ZonedDateTime getCreationTime()
    Returns the creation time of Cache event.
    CacheEvent.Type getEventType()
    Returns the type of the Cache event.
  • Method Details

    • getCacheName

      java.lang.String getCacheName()
      Returns the name of the Cache which has created the event.
      Returns:
      the name of the Cache which has created the event
    • getCreationTime

      java.time.ZonedDateTime getCreationTime()
      Returns the creation time of Cache event.
      Returns:
      the creation time of Cache event
    • getEventType

      CacheEvent.Type getEventType()
      Returns the type of the Cache event.
      Returns:
      the type of the Cache event