public class WebsocketApi extends Api
| Modifier and Type | Class and Description |
|---|---|
class |
WebsocketApi.SimpleSocket |
static interface |
WebsocketApi.Socket |
| Modifier and Type | Field and Description |
|---|---|
int |
retryDelayMs |
protected WebsocketApi.Socket |
socket |
| Constructor and Description |
|---|
WebsocketApi(Credentials credentials) |
WebsocketApi(Credentials credentials,
String host,
boolean secure) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected String |
connectHttp() |
protected WebsocketApi.Socket |
connectWs(String sessionId) |
protected WebsocketApi.Socket |
establish() |
protected void |
onWebsocketsApiResponse(String msgId,
Response response) |
protected void |
onWebsocketsDropResponse(WebsocketsDropResponse r1) |
<S> FlowthingsFuture<S> |
send(Request<S> request) |
<S> FlowthingsFuture<S> |
sendAsync(Request<S> request)
A consistent interface for sending requests via multiple APIs
|
protected <S> FlowthingsFuture<S> |
sendRequest(Request<S> request) |
WebsocketApi |
start() |
boolean |
supportsSubscribe() |
collectResponse, setRequestPropertiesprotected WebsocketApi.Socket socket
public int retryDelayMs
public WebsocketApi(Credentials credentials, String host, boolean secure)
public WebsocketApi(Credentials credentials) throws FlowthingsException
FlowthingsExceptionpublic WebsocketApi start() throws FlowthingsException
FlowthingsExceptionprotected WebsocketApi.Socket establish() throws FlowthingsException
FlowthingsExceptionprotected String connectHttp() throws FlowthingsException
FlowthingsExceptionprotected WebsocketApi.Socket connectWs(String sessionId) throws FlowthingsException
FlowthingsExceptionpublic <S> FlowthingsFuture<S> send(Request<S> request)
protected <S> FlowthingsFuture<S> sendRequest(Request<S> request)
public <S> FlowthingsFuture<S> sendAsync(Request<S> request)
Apipublic boolean supportsSubscribe()
supportsSubscribe in class Apiprotected void onWebsocketsDropResponse(WebsocketsDropResponse r1)
Copyright © 2017. All rights reserved.