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 ClassesModifier and TypeInterfaceDescriptionstatic enumEvent types which are created by a CircuitBreaker. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the CircuitBreaker which has created the event.Returns the creation time of CircuitBreaker event.Returns the type of the CircuitBreaker event.
-
Method Details
-
getCircuitBreakerName
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
ZonedDateTime getCreationTime()Returns the creation time of CircuitBreaker event.- Returns:
- the creation time of CircuitBreaker event
-