public interface EventSource<D>
extends java.io.Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EventSource.Event<D>
A single Server Sent Event, received from peer.
|
| Modifier and Type | Method and Description |
|---|---|
EventSource.Event<D> |
poll()
Waits for the next SSE and returns an event.
|
EventSource.Event<D> poll() throws java.io.IOException, HttpException
EventSource.Event.isEmpty() before processingjava.io.IOException - an I/O exception occurredHttpException - an incorrect HTTP request received