Class CommandSucceededEvent


  • public class CommandSucceededEvent
    extends CommandBaseEvent
    Event for succeeded command.
    Since:
    6.1
    Author:
    Mikhael Sokolov
    • Method Detail

      • getDuration

        public Duration getDuration()
        Returns:
        execution duration.
      • getDuration

        public long getDuration​(TimeUnit unit)
        Parameters:
        unit - requested TimeUnit to represent the duration.
        Returns:
        execution duration in TimeUnit.
      • getStarted

        public Instant getStarted()
        Returns:
        Instant when the command was started.
      • getCompleted

        public Instant getCompleted()
        Returns:
        Instant when the command was completed.