Class BeforeCheckpointEvent

java.lang.Object
java.util.EventObject
io.micronaut.crac.events.BeforeCheckpointEvent
All Implemented Interfaces:
Serializable

public class BeforeCheckpointEvent extends EventObject
An event fired when a resource CRaC checkpoint occurs.
Since:
1.0.0
Author:
Tim Yates
See Also:
  • Constructor Details

    • BeforeCheckpointEvent

      public BeforeCheckpointEvent(OrderedResource resource, long timeTakenNanos)
      Parameters:
      resource - The resource that triggered the event.
      timeTakenNanos - The time token for the action to be processed in nanoseconds.
  • Method Details

    • getNow

      public Instant getNow()
      Returns:
      The Instant the event was fired.
    • getTimeTakenNanos

      public long getTimeTakenNanos()
      Returns:
      The time token for the action to be processed in nanoseconds.