public class StandardEventSourceListener extends ModelEventSourceListener
| 限定符和类型 | 字段和说明 |
|---|---|
protected CountDownLatch |
countDownLatch |
| 构造器和说明 |
|---|
StandardEventSourceListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
CountDownLatch |
getCountDownLatch() |
SseMeta |
getMeta() |
String |
getOutputText() |
boolean |
isIncremental() |
void |
onClosed(okhttp3.sse.EventSource eventSource) |
void |
onEvent(okhttp3.sse.EventSource eventSource,
String id,
String type,
String data) |
void |
onFailure(okhttp3.sse.EventSource eventSource,
Throwable t,
okhttp3.Response response) |
void |
onOpen(okhttp3.sse.EventSource eventSource,
okhttp3.Response response) |
void |
setIncremental(boolean incremental) |
protected CountDownLatch countDownLatch
public void onOpen(okhttp3.sse.EventSource eventSource,
okhttp3.Response response)
onOpen 在类中 okhttp3.sse.EventSourceListenerpublic void onEvent(okhttp3.sse.EventSource eventSource,
String id,
String type,
String data)
onEvent 在类中 okhttp3.sse.EventSourceListenerpublic void onClosed(okhttp3.sse.EventSource eventSource)
onClosed 在类中 okhttp3.sse.EventSourceListenerpublic void onFailure(okhttp3.sse.EventSource eventSource,
Throwable t,
okhttp3.Response response)
onFailure 在类中 okhttp3.sse.EventSourceListenerpublic String getOutputText()
getOutputText 在类中 ModelEventSourceListenerpublic SseMeta getMeta()
getMeta 在类中 ModelEventSourceListenerpublic CountDownLatch getCountDownLatch()
public boolean isIncremental()
public void setIncremental(boolean incremental)
Copyright © 2024. All rights reserved.