public abstract class EventSourceListener
extends java.lang.Object
| Constructor | Description |
|---|---|
EventSourceListener() |
| Modifier and Type | Method | 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,
okhttp3.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,
okhttp3.Response response) |
Invoked when an event source has been accepted by the remote peer and may begin transmitting
events.
|
public void onOpen(EventSource eventSource, okhttp3.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 okhttp3.Response response)
Copyright © 2020. All rights reserved.