public abstract class BaseWebsocketsClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CLOSE_TIMEOUT_SECONDS |
protected ExecutorService |
executorService |
protected BaseWebsocketsListener |
listener |
protected static org.slf4j.Logger |
logger |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected okhttp3.WebSocket |
ws |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseWebsocketsClient(okhttp3.OkHttpClient client,
String url,
BaseCallbackHandler handler,
BaseReq req) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract BaseCallbackHandler |
getCallbackHandler() |
protected abstract void |
handleEvent(okhttp3.WebSocket ws,
String text) |
protected String |
parseEventType(com.fasterxml.jackson.databind.JsonNode jsonNode,
String text) |
protected void |
sendEvent(BaseEvent event) |
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected static final org.slf4j.Logger logger
protected final okhttp3.WebSocket ws
protected final ExecutorService executorService
protected static final int CLOSE_TIMEOUT_SECONDS
protected final BaseWebsocketsListener listener
protected BaseWebsocketsClient(okhttp3.OkHttpClient client,
String url,
BaseCallbackHandler handler,
BaseReq req)
protected void sendEvent(BaseEvent event)
protected abstract void handleEvent(okhttp3.WebSocket ws,
String text)
protected abstract BaseCallbackHandler getCallbackHandler()
protected String parseEventType(com.fasterxml.jackson.databind.JsonNode jsonNode, String text)
public void close()
Copyright © 2025. All rights reserved.