Top Description Fields Constructors Methods
io.github.resilience4j.circuitbreaker.event

public Class CircuitBreakerOnSuccessEvent

extends AbstractCircuitBreakerEvent
Class Inheritance
Imports
java.time.Duration

A CircuitBreakerEvent which informs that a success has been recorded

Field Summary

Modifier and TypeField and Description
private final Duration

Constructor Summary

AccessConstructor and Description
public
CircuitBreakerOnSuccessEvent(String circuitBreakerName, Duration elapsedDuration)

Method Summary

Modifier and TypeMethod and Description
public Duration
public CircuitBreakerEvent.Type
getEventType()

Implements io.github.resilience4j.circuitbreaker.event.CircuitBreakerEvent.getEventType.

Returns the type of the CircuitBreaker event.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from io.github.resilience4j.circuitbreaker.event.AbstractCircuitBreakerEvent:
getCircuitBreakerNamegetCreationTime

Field Detail

elapsedDurationback to summary
private final Duration elapsedDuration

Constructor Detail

CircuitBreakerOnSuccessEventback to summary
public CircuitBreakerOnSuccessEvent(String circuitBreakerName, Duration elapsedDuration)

Method Detail

getElapsedDurationback to summary
public Duration getElapsedDuration()
getEventTypeback to summary
public CircuitBreakerEvent.Type getEventType()

Implements io.github.resilience4j.circuitbreaker.event.CircuitBreakerEvent.getEventType.

Doc from io.github.resilience4j.circuitbreaker.event.CircuitBreakerEvent.getEventType.

Returns the type of the CircuitBreaker event.

Returns:CircuitBreakerEvent.Type

the type of the CircuitBreaker event

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override