Class StdWebSocketService
java.lang.Object
pro.gravit.launcher.base.request.websockets.ClientJSONPoint
pro.gravit.launcher.base.request.websockets.ClientWebSocketService
pro.gravit.launcher.base.request.websockets.StdWebSocketService
- All Implemented Interfaces:
WebSocket.Listener, RequestService
-
Nested Class Summary
Nested classes/interfaces inherited from class ClientWebSocketService
ClientWebSocketService.EventHandler, ClientWebSocketService.OnCloseCallback, ClientWebSocketService.ReconnectCallbackNested classes/interfaces inherited from interface RequestService
RequestService.EventHandler -
Field Summary
Fields inherited from class ClientWebSocketService
gson, onCloseCallback, onConnect, reconnectCallback, requests, results, waitObjectFields inherited from class ClientJSONPoint
httpClient, isClosed, port, ssl, webSocket -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends WebSocketEvent>
voideventHandle(T webSocketEvent) static CompletableFuture<StdWebSocketService> initWebSockets(String address) booleanisClosed()<T extends WebSocketEvent>
voidprocessEventHandlers(T event) voidvoidDeprecated.<T extends WebSocketEvent>
CompletableFuture<T> <T extends WebSocketEvent>
TrequestSync(Request<T> request) voidvoidDeprecated.Methods inherited from class ClientWebSocketService
appendTypeAdapters, registerRequests, registerResults, sendObject, sendObject, waitIfNotConnectedMethods inherited from class ClientJSONPoint
close, connect, onBinary, onClose, onError, onOpen, onText, openAsync, sendMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestService
connectMethods inherited from interface WebSocket.Listener
onPing, onPong
-
Constructor Details
-
StdWebSocketService
- Throws:
SSLException
-
-
Method Details
-
initWebSockets
-
registerEventHandler
Deprecated. -
unregisterEventHandler
Deprecated. -
processEventHandlers
-
eventHandle
- Specified by:
eventHandlein classClientWebSocketService
-
request
- Specified by:
requestin interfaceRequestService
-
registerEventHandler
- Specified by:
registerEventHandlerin interfaceRequestService
-
unregisterEventHandler
- Specified by:
unregisterEventHandlerin interfaceRequestService
-
requestSync
- Specified by:
requestSyncin interfaceRequestService
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceRequestService
-