Class TimedJob

java.lang.Object
io.deephaven.io.sched.Job
io.deephaven.io.sched.TimedJob
All Implemented Interfaces:
io.deephaven.base.log.LogOutputAppendable

public abstract class TimedJob extends Job
This is the base class for jobs which are only interested in timing events. It provides default invoke() and cancelled() method which do nothing.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.deephaven.base.log.LogOutput
    append(io.deephaven.base.log.LogOutput logOutput)
     
    void
    This method is called if the job is explicitly cancelled before it becomes ready or times out.
    int
    invoke(SelectableChannel channel, int readyOps, Runnable handoff)
    This method is invoked by the scheduler when the job's channel becomes ready.

    Methods inherited from class io.deephaven.io.sched.Job

    timedOut

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimedJob

      public TimedJob()
  • Method Details

    • invoke

      public int invoke(SelectableChannel channel, int readyOps, Runnable handoff)
      Description copied from class: Job
      This method is invoked by the scheduler when the job's channel becomes ready.
      Specified by:
      invoke in class Job
      Parameters:
      channel - the channel which has become ready
      readyOps - the operations which can be performed on this channel without blocking
    • cancelled

      public void cancelled()
      Description copied from class: Job
      This method is called if the job is explicitly cancelled before it becomes ready or times out.
      Specified by:
      cancelled in class Job
    • append

      public io.deephaven.base.log.LogOutput append(io.deephaven.base.log.LogOutput logOutput)
      Specified by:
      append in interface io.deephaven.base.log.LogOutputAppendable
      Overrides:
      append in class Job