possible states for a room key request

The state machine looks like:


| (cancellation sent)
| .-------------------------------------------------.
| | |
V V (cancellation requested) |
UNSENT -----------------------------+ |
| | |
| | |
| (send successful) | CANCELLATION_PENDING_AND_WILL_RESEND
V | Λ
SENT | |
|-------------------------------- | --------------'
| | (cancellation requested with intent
| | to resend the original request)
| |
| (cancellation requested) |
V |
CANCELLATION_PENDING |
| |
| (cancellation sent) |
V |
(deleted) <---------------------------+

Enumeration Members

CancellationPending

reply received, cancellation not yet sent

CancellationPendingAndWillResend

Cancellation not yet sent and will transition to UNSENT instead of being deleted once the cancellation has been sent.

Sent

request sent, awaiting reply

Unsent

request not yet sent