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>
public final class IgnoreConsumedEvent<T> extends java.lang.Object implements ConsumableEvent<T>
AConsumableEvent
which ignoreseventConsumed()
.
-
-
Constructor Summary
Constructors Constructor Description IgnoreConsumedEvent(T event)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
event()
Get the event.void
eventConsumed()
Signify theConsumableEvent.event()
has been consumed and any side effects have taken place.
-
-
-
Method Detail
-
event
public T event()
Description copied from interface:ConsumableEvent
Get the event.- Specified by:
event
in interfaceConsumableEvent<T>
- Returns:
- the event.
-
eventConsumed
public void eventConsumed()
Description copied from interface:ConsumableEvent
Signify theConsumableEvent.event()
has been consumed and any side effects have taken place.- Specified by:
eventConsumed
in interfaceConsumableEvent<T>
-
-