T - The type of event.public interface ConsumableEvent<T>
eventConsumed().| Modifier and Type | Method and Description |
|---|---|
T |
event()
Get the event.
|
void |
eventConsumed()
Signify the
event() has been consumed and any side effects have taken place. |
T event()
void eventConsumed()
event() has been consumed and any side effects have taken place.
Implementations of this method are expected to be idempotent, meaning that if the event is already consumed then invoking this method has no effect.