Class ConnectionScheduler

java.lang.Object
io.deephaven.enterprise.comm.sched.JobScheduler
com.illumon.util.net.ConnectionScheduler
All Implemented Interfaces:
Scheduler

public class ConnectionScheduler extends JobScheduler
Create a private scheduler to handle jobs for a single connection.
  • Constructor Details

    • ConnectionScheduler

      public ConnectionScheduler(@NotNull @NotNull String name, @NotNull @NotNull com.fishlib.io.logger.Logger log, @NotNull @NotNull JobScheduler.Statistics statistics, int numThreads) throws IOException
      Construct a new scheduler designed for use by a single connection, with the supplied name, log, and number of driver threads.
      Parameters:
      name - The name of the scheduler
      log - The log to be used by the scheduler
      statistics - Statistics to be reported by the super class
      numThreads - The number of driver threads to create
      Throws:
      IOException
  • Method Details

    • updateDriverThreadNames

      public void updateDriverThreadNames(@NotNull @NotNull String namePrefix)
      Update the names of the driver threads with a new name prefix, replacing the scheduler's name as a component of the driver thread names. Does not change the name of the scheduler, which becomes fixed at construction time.
      Parameters:
      namePrefix - The new name prefix
    • postClose

      protected void postClose()
      Description copied from class: JobScheduler
      Subclass hook invoked after the scheduler has transitioned to the closed state and any waiters on JobScheduler.waitForFullyClosed() have been notified. Called exactly once.

      Implementations must not assume the scheduler is still usable, and should not block for significant time — callers treating this scheduler as closed may already have moved on.

      Overrides:
      postClose in class JobScheduler
    • getLog

      public com.fishlib.io.logger.Logger getLog()
      Get this scheduler's log
      Returns:
      The log
    • start

      public void start()
      Start this scheduler.