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 public final class IgnoreConsumedEvent<T> extends Object implements 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.
  • Constructor Details

    • IgnoreConsumedEvent

      public IgnoreConsumedEvent(T event)
      Deprecated.
      Create a new instance.
      Parameters:
      event - The event to return from event().
  • Method Details

    • event

      public T event()
      Deprecated.
      Description copied from interface: ConsumableEvent
      Get the event.
      Specified by:
      event in interface ConsumableEvent<T>
      Returns:
      the event.
    • eventConsumed

      public void eventConsumed()
      Deprecated.
      Description copied from interface: ConsumableEvent
      Signify the ConsumableEvent.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 interface ConsumableEvent<T>