public abstract class EventSourceListener
extends java.lang.Object
Constructor and Description |
---|
EventSourceListener() |
Modifier and Type | Method and Description |
---|---|
void |
onClosed(EventSource eventSource)
TODO description.
|
void |
onEvent(EventSource eventSource,
java.lang.String id,
java.lang.String type,
java.lang.String data)
TODO description.
|
void |
onFailure(EventSource eventSource,
java.lang.Throwable t,
Response response)
Invoked when an event source has been closed due to an error reading from or writing to the
network.
|
void |
onOpen(EventSource eventSource,
Response response)
Invoked when an event source has been accepted by the remote peer and may begin transmitting
events.
|
public void onOpen(EventSource eventSource, Response response)
public void onEvent(EventSource eventSource, @Nullable java.lang.String id, @Nullable java.lang.String type, java.lang.String data)
public void onClosed(EventSource eventSource)
public void onFailure(EventSource eventSource, @Nullable java.lang.Throwable t, @Nullable Response response)