Interface AbstractMessageStream.FetchResult<T extends @Nullable MessageStream.Entry<?>>

Type Parameters:
T - the type of value returned when available
All Known Implementing Classes:
AbstractMessageStream.FetchResult.Completed, AbstractMessageStream.FetchResult.Error, AbstractMessageStream.FetchResult.NotReady, AbstractMessageStream.FetchResult.Value
Enclosing class:
AbstractMessageStream<M extends Message>

Represents the result of attempting to fetch the next element from a MessageStream.

A FetchResult models four distinct outcomes:

This abstraction allows implementations to distinguish between a stream that is temporarily out of elements and one that has been fully exhausted.