Package io.vantiq.client.internal
Class VantiqSubscriber
java.lang.Object
okhttp3.WebSocketListener
io.vantiq.client.internal.VantiqSubscriber
public class VantiqSubscriber
extends okhttp3.WebSocketListener
Internal class that manages subscriptions to a Vantiq server.
-
Constructor Summary
ConstructorsConstructorDescriptionVantiqSubscriber(VantiqSession session, okhttp3.OkHttpClient client, boolean enablePings) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidconnect(VantiqSubscriberLifecycleListener lifecycleHandler) voidvoidvoidonMessage(okhttp3.WebSocket webSocket, okio.ByteString bodyBytes) voidonOpen(okhttp3.WebSocket webSocket, okhttp3.Response response) voidvoidMethods inherited from class okhttp3.WebSocketListener
onClosing, onMessage
-
Constructor Details
-
VantiqSubscriber
-
-
Method Details
-
connect
-
subscribe
-
ack
-
close
public void close() -
startPeriodicPings
public void startPeriodicPings() -
onOpen
public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response) - Overrides:
onOpenin classokhttp3.WebSocketListener
-
onFailure
public void onFailure(@NotNull okhttp3.WebSocket webSocket, @NotNull Throwable t, okhttp3.Response response) - Overrides:
onFailurein classokhttp3.WebSocketListener
-
onMessage
public void onMessage(@NotNull okhttp3.WebSocket webSocket, okio.ByteString bodyBytes) - Overrides:
onMessagein classokhttp3.WebSocketListener
-
onClosed
- Overrides:
onClosedin classokhttp3.WebSocketListener
-