Class OfflineRequestService
java.lang.Object
pro.gravit.launcher.base.request.websockets.OfflineRequestService
- All Implemented Interfaces:
RequestService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceOfflineRequestService.RequestProcessor<T extends WebSocketEvent,V extends WebSocketRequest> Nested classes/interfaces inherited from interface pro.gravit.launcher.base.request.RequestService
RequestService.EventHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisClosed()voidopen()void<T extends WebSocketEvent,V extends WebSocketRequest>
voidregisterRequestProcessor(Class<V> requestClazz, OfflineRequestService.RequestProcessor<T, V> function) <T extends WebSocketEvent>
CompletableFuture<T> void<T extends WebSocketEvent>
voidunregisterRequestProcessor(Class<Request<T>> requestClazz) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launcher.base.request.RequestService
requestSync
-
Constructor Details
-
OfflineRequestService
public OfflineRequestService()
-
-
Method Details
-
request
- Specified by:
requestin interfaceRequestService
-
open
public void open()- Specified by:
openin interfaceRequestService
-
registerEventHandler
- Specified by:
registerEventHandlerin interfaceRequestService
-
unregisterEventHandler
- Specified by:
unregisterEventHandlerin interfaceRequestService
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceRequestService
-
registerRequestProcessor
public <T extends WebSocketEvent,V extends WebSocketRequest> void registerRequestProcessor(Class<V> requestClazz, OfflineRequestService.RequestProcessor<T, V> function) -
unregisterRequestProcessor
-