Top Description Inners Methods
io.github.resilience4j.circuitbreaker.event

public Interface CircuitBreakerEvent

Known Direct Implementers
io.github.resilience4j.circuitbreaker.event.AbstractCircuitBreakerEvent
Imports
java.time.ZonedDateTime

An event which is created by a CircuitBreaker.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
CircuitBreakerEvent.Type

Event types which are created by a CircuitBreaker.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the CircuitBreaker which has created the event
getCircuitBreakerName
()

Returns the name of the CircuitBreaker which has created the event.

public ZonedDateTime

Returns:

the creation time of CircuitBreaker event
getCreationTime
()

Returns the creation time of CircuitBreaker event.

public CircuitBreakerEvent.Type

Returns:

the type of the CircuitBreaker event
getEventType
()

Returns the type of the CircuitBreaker event.

Method Detail

getCircuitBreakerNameback to summary
public String getCircuitBreakerName()

Returns the name of the CircuitBreaker which has created the event.

Returns:String

the name of the CircuitBreaker which has created the event

getCreationTimeback to summary
public ZonedDateTime getCreationTime()

Returns the creation time of CircuitBreaker event.

Returns:ZonedDateTime

the creation time of CircuitBreaker event

getEventTypeback to summary
public CircuitBreakerEvent.Type getEventType()

Returns the type of the CircuitBreaker event.

Returns:CircuitBreakerEvent.Type

the type of the CircuitBreaker event

io.github.resilience4j.circuitbreaker.event back to summary

public final Enum CircuitBreakerEvent.Type

extends Enum<CircuitBreakerEvent.Type>
Class Inheritance

Event types which are created by a CircuitBreaker.

Field Summary

Modifier and TypeField and Description
public static final CircuitBreakerEvent.Type
DISABLED

A CircuitBreakerEvent which informs the CircuitBreaker has been disabled

public static final CircuitBreakerEvent.Type
ERROR

A CircuitBreakerEvent which informs that an error has been recorded

public static final CircuitBreakerEvent.Type
FAILURE_RATE_EXCEEDED

A CircuitBreakerEvent which informs the CircuitBreaker failure rate has been breached

public static final CircuitBreakerEvent.Type
FORCED_OPEN

A CircuitBreakerEvent which informs the CircuitBreaker has been forced open

public final boolean
public static final CircuitBreakerEvent.Type
IGNORED_ERROR

A CircuitBreakerEvent which informs that an error has been ignored

public static final CircuitBreakerEvent.Type
NOT_PERMITTED

A CircuitBreakerEvent which informs that a call was not permitted because the CircuitBreaker state is OPEN

public static final CircuitBreakerEvent.Type
RESET

A CircuitBreakerEvent which informs the CircuitBreaker has been reset

public static final CircuitBreakerEvent.Type
SLOW_CALL_RATE_EXCEEDED

A CircuitBreakerEvent which informs the CircuitBreaker show call rate has been breached

public static final CircuitBreakerEvent.Type
STATE_TRANSITION

A CircuitBreakerEvent which informs the state of the CircuitBreaker has been changed

public static final CircuitBreakerEvent.Type
SUCCESS

A CircuitBreakerEvent which informs that a success has been recorded

Constructor Summary

AccessConstructor and Description
private
Type(boolean forcePublish)

Method Summary

Modifier and TypeMethod and Description
public static CircuitBreakerEvent.Type
public static CircuitBreakerEvent.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DISABLEDback to summary
public static final CircuitBreakerEvent.Type DISABLED

A CircuitBreakerEvent which informs the CircuitBreaker has been disabled

ERRORback to summary
public static final CircuitBreakerEvent.Type ERROR

A CircuitBreakerEvent which informs that an error has been recorded

FAILURE_RATE_EXCEEDEDback to summary
public static final CircuitBreakerEvent.Type FAILURE_RATE_EXCEEDED

A CircuitBreakerEvent which informs the CircuitBreaker failure rate has been breached

FORCED_OPENback to summary
public static final CircuitBreakerEvent.Type FORCED_OPEN

A CircuitBreakerEvent which informs the CircuitBreaker has been forced open

forcePublishback to summary
public final boolean forcePublish
IGNORED_ERRORback to summary
public static final CircuitBreakerEvent.Type IGNORED_ERROR

A CircuitBreakerEvent which informs that an error has been ignored

NOT_PERMITTEDback to summary
public static final CircuitBreakerEvent.Type NOT_PERMITTED

A CircuitBreakerEvent which informs that a call was not permitted because the CircuitBreaker state is OPEN

RESETback to summary
public static final CircuitBreakerEvent.Type RESET

A CircuitBreakerEvent which informs the CircuitBreaker has been reset

SLOW_CALL_RATE_EXCEEDEDback to summary
public static final CircuitBreakerEvent.Type SLOW_CALL_RATE_EXCEEDED

A CircuitBreakerEvent which informs the CircuitBreaker show call rate has been breached

STATE_TRANSITIONback to summary
public static final CircuitBreakerEvent.Type STATE_TRANSITION

A CircuitBreakerEvent which informs the state of the CircuitBreaker has been changed

SUCCESSback to summary
public static final CircuitBreakerEvent.Type SUCCESS

A CircuitBreakerEvent which informs that a success has been recorded

Constructor Detail

Typeback to summary
private Type(boolean forcePublish)

Method Detail

valueOfback to summary
public static CircuitBreakerEvent.Type valueOf(String name)
valuesback to summary
public static CircuitBreakerEvent.Type[] values()