Module lettuce.core

Class CommandSucceededEvent

java.lang.Object
io.lettuce.core.event.command.CommandBaseEvent
io.lettuce.core.event.command.CommandSucceededEvent

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

  • Method Details

    • 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.