CommandOutcomeHandler
Used by CommandExecutorService , to update a Command after it has been executed.
API
CommandOutcomeHandler.java
interface CommandOutcomeHandler {
CommandOutcomeHandler NULL;
Timestamp getStartedAt() (1)
void setStartedAt(Timestamp startedAt) (2)
void setCompletedAt(Timestamp completedAt) (3)
void setResult(Try<Bookmark> result) (4)
}
1 | getStartedAt()
Reads the |
2 | setStartedAt(Timestamp)
Sets the |
3 | setCompletedAt(Timestamp)
Sets the |
4 | setResult(Try) |
Members
getStartedAt()
Reads the startedAt
field from the underlying Command (or persistent equivalent)
This is to ensure that it isn’t overwritten by #setStartedAt(Timestamp) .
setStartedAt(Timestamp)
Sets the startedAt
field on the underlying Command (or persistent equivalent)
setCompletedAt(Timestamp)
Sets the completedAt
field on the underlying Command (or persistent equivalent)