Package one.nio.http

Interface EventSource<D>

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
EventSourceResponse, HttpClient.ServerSentEventsReader

public interface EventSource<D> extends Closeable
A source of server side emitted events
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A single Server Sent Event, received from peer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Waits for the next SSE and returns an event.

    Methods inherited from interface java.io.Closeable

    close