public abstract class EventSourceListener extends Object
Constructor and Description |
---|
EventSourceListener() |
Modifier and Type | Method and Description |
---|---|
void |
onClosed(EventSource eventSource)
TODO description.
|
void |
onEvent(EventSource eventSource,
String id,
String type,
String data)
TODO description.
|
void |
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 |
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 String id, @Nullable String type, String data)
public void onClosed(EventSource eventSource)
public void onFailure(EventSource eventSource, @Nullable Throwable t, @Nullable Response response)
Copyright © 2019. All rights reserved.