@FunctionalInterface public interface ExcerptListener
| Modifier and Type | Method and Description |
|---|---|
default @NotNull ExcerptListener |
andThen(@NotNull ExcerptListener after)
Returns a composed ExcerptListener that first accepts excerpts to this ExcerptListener,
and then accepts excerpts to the
after ExcerptListener. |
void |
onExcerpt(@NotNull Wire wire,
long index)
Invoked per each encountered excerpt.
|
void onExcerpt(@NotNull
@NotNull Wire wire,
long index)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
If this method throws an Exception, it is relayed to the call site. Therefore, care should be taken to minimise the probability of throwing Exceptions.
wire - representing access to the excerpt that was stored (non-null).index - in the queue where the except was placed (non-negative)net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull default @NotNull ExcerptListener andThen(@NotNull @NotNull ExcerptListener after)
after ExcerptListener.
If execution of either listener throws an exception, it is relayed to
the caller of the composed ExcerptListener.
Care should be taken to only create composed listeners that are performant.
after - the ExcerptListener to accept excerpts after this ExcerptListenerNullPointerException - if after is null Copyright © 2023. All rights reserved.