public abstract class EventSourceListener extends Object
| 构造器和说明 |
|---|
EventSourceListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClosed(okhttp3.sse.EventSource eventSource) |
void |
onEvent(okhttp3.sse.EventSource eventSource,
String id,
String type,
String data,
String meta) |
void |
onFailure(okhttp3.sse.EventSource eventSource,
Throwable t,
okhttp3.Response response) |
void |
onOpen(okhttp3.sse.EventSource eventSource,
okhttp3.Response response) |
public void onOpen(okhttp3.sse.EventSource eventSource,
okhttp3.Response response)
public void onEvent(okhttp3.sse.EventSource eventSource,
String id,
String type,
String data,
String meta)
public void onClosed(okhttp3.sse.EventSource eventSource)
public void onFailure(okhttp3.sse.EventSource eventSource,
Throwable t,
okhttp3.Response response)
Copyright © 2023. All rights reserved.