Class WorkerClientHeartbeatQuery

java.lang.Object
com.illumon.iris.db.tables.remotequery.ContextAwareRemoteQuery<Boolean>
com.illumon.iris.controller.WorkerClientHeartbeatQuery
All Implemented Interfaces:
RemoteQuery<Boolean>, Serializable

public class WorkerClientHeartbeatQuery extends ContextAwareRemoteQuery<Boolean>
Sends a heartbeat to an InteractiveConsole script-session, which is used by the worker to determine if any clients are actively subscribed. When the worker detects that there are no interested clients, it may choose to shut itself down in order to give back resources to the server
See Also:
  • Constructor Details

    • WorkerClientHeartbeatQuery

      public WorkerClientHeartbeatQuery(int sessionId)
  • Method Details

    • execute

      public Boolean execute(Database database)
      Description copied from interface: RemoteQuery
      Execute a query on a remote host.
      Parameters:
      database - database to use for execution.
      Returns:
      result of the query.