Modifier and Type | Method and Description |
---|---|
EventSource |
EventSource.Factory.newEventSource(Request request,
EventSourceListener listener)
Creates a new event source and immediately returns it.
|
Modifier and Type | Method and Description |
---|---|
void |
EventSourceListener.onClosed(EventSource eventSource)
TODO description.
|
void |
EventSourceListener.onEvent(EventSource eventSource,
String id,
String type,
String data)
TODO description.
|
void |
EventSourceListener.onFailure(EventSource eventSource,
Throwable t,
Response response)
Invoked when an event source has been closed due to an error reading from or writing to the
network.
|
void |
EventSourceListener.onOpen(EventSource eventSource,
Response response)
Invoked when an event source has been accepted by the remote peer and may begin transmitting
events.
|
Copyright © 2019. All rights reserved.