Class BulkheadOnCallRejectedEvent
java.lang.Object
io.github.resilience4j.bulkhead.event.BulkheadOnCallRejectedEvent
- All Implemented Interfaces:
BulkheadEvent
public class BulkheadOnCallRejectedEvent
extends java.lang.Object
A BulkheadEvent which informs that a call has been rejected, because the bulkhead is full.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.resilience4j.bulkhead.event.BulkheadEvent
BulkheadEvent.Type
-
Constructor Summary
Constructors Constructor Description BulkheadOnCallRejectedEvent(java.lang.String bulkheadName)
-
Method Summary
Modifier and Type Method Description java.lang.String
getBulkheadName()
Returns the name of the bulkhead which has created the event.java.time.ZonedDateTime
getCreationTime()
Returns the creation time of bulkhead event.BulkheadEvent.Type
getEventType()
Returns the type of the bulkhead event.java.lang.String
toString()
-
Constructor Details
-
BulkheadOnCallRejectedEvent
public BulkheadOnCallRejectedEvent(java.lang.String bulkheadName)
-
-
Method Details
-
getEventType
Description copied from interface:BulkheadEvent
Returns the type of the bulkhead event.- Returns:
- the type of the bulkhead event
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getBulkheadName
public java.lang.String getBulkheadName()Description copied from interface:BulkheadEvent
Returns the name of the bulkhead which has created the event.- Specified by:
getBulkheadName
in interfaceBulkheadEvent
- Returns:
- the name of the bulkhead which has created the event
-
getCreationTime
public java.time.ZonedDateTime getCreationTime()Description copied from interface:BulkheadEvent
Returns the creation time of bulkhead event.- Specified by:
getCreationTime
in interfaceBulkheadEvent
- Returns:
- the creation time of bulkhead event
-