Interface StreamEvent
- All Known Implementing Classes:
StreamEvent.Available,StreamEvent.Finished,StreamEvent.Opened,StreamEvent.Readable,StreamEvent.Stopped,StreamEvent.Writable
public sealed interface StreamEvent
permits StreamEvent.Opened, StreamEvent.Readable, StreamEvent.Writable, StreamEvent.Finished, StreamEvent.Stopped, StreamEvent.Available
Application events about streams, polled from
StreamsState.poll(). They are hints: the
blocking stream layer wakes the matching readers and writers, which then retry.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe peer raised the stream limit, so at least one more stream of this directionality may be opened.static final recordA finished stream's data, FIN included, has all been acknowledged.static final recordThe peer opened one or more streams, whichStreamsState.accept(Dir)now returns.static final recordA stream probably has data, its end or a reset waiting to be read.static final recordThe peer sent STOP_SENDING: it no longer wants the stream's data.static final recordA stream that could not take more data might take some now, or was stopped.