类 SseClient
java.lang.Object
okhttp3.sse.EventSourceListener
com.agentsflex.core.model.client.impl.SseClient
- 所有已实现的接口:
StreamClient
-
字段概要
字段修饰符和类型字段说明private ChatConfigprivate okhttp3.sse.EventSourceprivate booleanprivate StreamClientListenerprivate okhttp3.OkHttpClient -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明okhttp3.OkHttpClientvoidonClosed(okhttp3.sse.EventSource eventSource) voidvoidvoidonOpen(okhttp3.sse.EventSource eventSource, okhttp3.Response response) voidsetOkHttpClient(okhttp3.OkHttpClient okHttpClient) voidstart(String url, Map<String, String> headers, String payload, StreamClientListener listener, ChatConfig config) voidstop()private void
-
字段详细资料
-
okHttpClient
-
eventSource
-
listener
-
config
-
isStop
-
-
构造器详细资料
-
SseClient
public SseClient() -
SseClient
-
-
方法详细资料
-
getOkHttpClient
-
setOkHttpClient
-
start
public void start(String url, Map<String, String> headers, String payload, StreamClientListener listener, ChatConfig config) - 指定者:
start在接口中StreamClient
-
stop
- 指定者:
stop在接口中StreamClient
-
onClosed
- 覆盖:
onClosed在类中okhttp3.sse.EventSourceListener
-
onEvent
public void onEvent(@NotNull okhttp3.sse.EventSource eventSource, @Nullable String id, @Nullable String type, @NotNull String data) - 覆盖:
onEvent在类中okhttp3.sse.EventSourceListener
-
onFailure
public void onFailure(@NotNull okhttp3.sse.EventSource eventSource, @Nullable Throwable t, @Nullable okhttp3.Response response) - 覆盖:
onFailure在类中okhttp3.sse.EventSourceListener
-
onOpen
public void onOpen(@NotNull okhttp3.sse.EventSource eventSource, @NotNull okhttp3.Response response) - 覆盖:
onOpen在类中okhttp3.sse.EventSourceListener
-
tryToStop
-