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

public Class CircuitBreakerOnErrorEvent

extends AbstractCircuitBreakerEvent
Class Inheritance
Imports
java.time.Duration

A CircuitBreakerEvent which informs that an error has been recorded

Field Summary

Modifier and TypeField and Description
private final Duration
private final Throwable

Constructor Summary

AccessConstructor and Description
public
CircuitBreakerOnErrorEvent(String circuitBreakerName, Duration elapsedDuration, Throwable throwable)

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 Throwable
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
throwableback to summary
private final Throwable throwable

Constructor Detail

CircuitBreakerOnErrorEventback to summary
public CircuitBreakerOnErrorEvent(String circuitBreakerName, Duration elapsedDuration, Throwable throwable)

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
getThrowableback to summary
public Throwable getThrowable()
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