Class WebsocketSchedulingClient

java.lang.Object
io.fluxzero.sdk.common.websocket.AbstractWebsocketClient
io.fluxzero.sdk.scheduling.client.WebsocketSchedulingClient
All Implemented Interfaces:
WebsocketEndpoint, SchedulingClient, AutoCloseable

public class WebsocketSchedulingClient extends AbstractWebsocketClient implements SchedulingClient
WebSocket-based implementation of the SchedulingClient interface that communicates with the Fluxzero Runtime.

This client is responsible for scheduling, cancelling, and querying deferred messages (schedules) over a WebSocket connection. It acts as the transport layer for the MessageScheduler.

Usage is typically indirect via high-level APIs like Fluxzero.schedule(...) or the MessageScheduler. Direct interaction with this client is uncommon in most application code.

See Also:
  • Constructor Details

    • WebsocketSchedulingClient

      public WebsocketSchedulingClient(String endPointUrl, WebSocketClient client)
      Constructs a scheduling client connected to the given endpoint URL.
      Parameters:
      endPointUrl - The endpoint URL of the Fluxzero Runtime scheduling gateway.
      client - The Fluxzero WebSocketClient configuration to use.
    • WebsocketSchedulingClient

      public WebsocketSchedulingClient(URI endpointUri, WebSocketClient client)
      Constructs a scheduling client connected to the given endpoint URI.
      Parameters:
      endpointUri - The URI of the scheduling gateway.
      client - The Fluxzero WebSocketClient configuration to use.
    • WebsocketSchedulingClient

      public WebsocketSchedulingClient(URI endpointUri, WebSocketClient client, boolean sendMetrics)
      Constructs a scheduling client connected to the given endpoint URI with an option to enable or disable metrics tracking.
      Parameters:
      endpointUri - The URI of the scheduling gateway.
      client - The WebSocket client configuration.
      sendMetrics - Whether to send metrics about schedule operations.
  • Method Details