Class CircuitBreakerOnSuccessEvent

  • All Implemented Interfaces:
    CircuitBreakerEvent

    public class CircuitBreakerOnSuccessEvent
    extends java.lang.Object
    A CircuitBreakerEvent which informs that a success has been recorded
    • Constructor Detail

      • CircuitBreakerOnSuccessEvent

        public CircuitBreakerOnSuccessEvent​(java.lang.String circuitBreakerName,
                                            java.time.Duration elapsedDuration)
    • Method Detail

      • getElapsedDuration

        public java.time.Duration getElapsedDuration()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCircuitBreakerName

        public java.lang.String getCircuitBreakerName()
        Description copied from interface: CircuitBreakerEvent
        Returns the name of the CircuitBreaker which has created the event.
        Specified by:
        getCircuitBreakerName in interface CircuitBreakerEvent
        Returns:
        the name of the CircuitBreaker which has created the event
      • getCreationTime

        public java.time.ZonedDateTime getCreationTime()
        Description copied from interface: CircuitBreakerEvent
        Returns the creation time of CircuitBreaker event.
        Specified by:
        getCreationTime in interface CircuitBreakerEvent
        Returns:
        the creation time of CircuitBreaker event