Class IgnoreConsumedEvent<T>
java.lang.Object
io.servicetalk.client.api.internal.IgnoreConsumedEvent<T>
- Type Parameters:
T
- The type of event.
- All Implemented Interfaces:
ConsumableEvent<T>
Deprecated.
This class is not used by ServiceTalk internal code anymore and will be removed in the future releases.
If you depend on it, consider replica ting this implementation in your codebase.
A
ConsumableEvent
which ignores eventConsumed()
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevent()
Deprecated.Get the event.void
Deprecated.Signify theConsumableEvent.event()
has been consumed and any side effects have taken place.
-
Constructor Details
-
IgnoreConsumedEvent
Deprecated.Create a new instance.- Parameters:
event
- The event to return fromevent()
.
-
-
Method Details
-
event
Deprecated.Description copied from interface:ConsumableEvent
Get the event.- Specified by:
event
in interfaceConsumableEvent<T>
- Returns:
- the event.
-
eventConsumed
public void eventConsumed()Deprecated.Description copied from interface:ConsumableEvent
Signify theConsumableEvent.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.
- Specified by:
eventConsumed
in interfaceConsumableEvent<T>
-