Interface CircuitBreakerEvent

All Known Implementing Classes:
CircuitBreakerOnCallNotPermittedEvent, CircuitBreakerOnErrorEvent, CircuitBreakerOnFailureRateExceededEvent, CircuitBreakerOnIgnoredErrorEvent, CircuitBreakerOnResetEvent, CircuitBreakerOnSlowCallRateExceededEvent, CircuitBreakerOnStateTransitionEvent, CircuitBreakerOnSuccessEvent

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

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

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

    • getCircuitBreakerName

      java.lang.String getCircuitBreakerName()
      Returns the name of the CircuitBreaker which has created the event.
      Returns:
      the name of the CircuitBreaker which has created the event
    • getEventType

      CircuitBreakerEvent.Type getEventType()
      Returns the type of the CircuitBreaker event.
      Returns:
      the type of the CircuitBreaker event
    • getCreationTime

      java.time.ZonedDateTime getCreationTime()
      Returns the creation time of CircuitBreaker event.
      Returns:
      the creation time of CircuitBreaker event