Package com.ultikits.ultitools.websocket
Interface CloudRequestHandler
- All Known Implementing Classes:
AgentTelemetry,CredentialRotationHandler,ModuleRequestHandler,PlayerActionHandler,PowerActionHandler,RemoteCommandHandler,RemoteFileOperations,RemotePropertiesHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles one parsed UltiCloud request; internal, not for module use.
- Since:
- 6.3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(CloudRequest request, CloudChannel channel) Validates the payload and handles it on the dispatching thread.
-
Method Details
-
handle
Validates the payload and handles it on the dispatching thread. No Bukkit main-thread scheduling is implied; handlers must schedule such work themselves. Synchronous payload validation failures become correlated invalid_message replies; other runtime failures become internal_error without exposing exception text. Asynchronous failures are the handler's responsibility.- Parameters:
request- the parsed envelope with a defensively copied payloadchannel- the reply channel, which may close during processing
-