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.

@Internal @FunctionalInterface public interface CloudRequestHandler
Handles one parsed UltiCloud request; internal, not for module use.
Since:
6.3.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(CloudRequest request, CloudChannel channel)
    Validates the payload and handles it on the dispatching thread.
  • Method Details

    • handle

      void handle(CloudRequest request, CloudChannel channel)
      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 payload
      channel - the reply channel, which may close during processing