Interface StoreAnswer
- All Known Implementing Classes:
StoreAnswer.Refused, StoreAnswer.Unknown, StoreAnswer.Written
public sealed interface StoreAnswer
permits StoreAnswer.Written, StoreAnswer.Refused, StoreAnswer.Unknown
The store's answer. The set of answers may grow; unknown answers are treated as Unknown.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordNot stored, and nothing of it will be;currentis what the store holds now.static final recordNot known whether it was stored (error, timeout, stall).static final recordStored. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic StoreAnswerA refused write with the store's current contents.static StoreAnswerAn indeterminate write; the cause may be absent.static StoreAnswerwritten()A successful write.
-
Method Details
-
written
A successful write. -
refused
A refused write with the store's current contents. -
unknown
An indeterminate write; the cause may be absent.
-