Package io.micronaut.crac.events
Class BeforeCheckpointEvent
java.lang.Object
java.util.EventObject
io.micronaut.crac.events.BeforeCheckpointEvent
- All Implemented Interfaces:
Serializable
An event fired when a resource CRaC checkpoint occurs.
- Since:
- 1.0.0
- Author:
- Tim Yates
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
BeforeCheckpointEvent
- Parameters:
resource
- The resource that triggered the event.timeTakenNanos
- The time token for the action to be processed in nanoseconds.
-
-
Method Details
-
getNow
- Returns:
- The
Instant
the event was fired.
-
getTimeTakenNanos
public long getTimeTakenNanos()- Returns:
- The time token for the action to be processed in nanoseconds.
-