Class 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
      TimedJob()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.deephaven.base.log.LogOutput append​(io.deephaven.base.log.LogOutput logOutput)  
      void cancelled()
      This method is called if the job is explicitly cancelled before it becomes ready or times out.
      int invoke​(java.nio.channels.SelectableChannel channel, int readyOps, io.deephaven.base.Procedure.Nullary 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 Detail

      • TimedJob

        public TimedJob()
    • Method Detail

      • invoke

        public int invoke​(java.nio.channels.SelectableChannel channel,
                          int readyOps,
                          io.deephaven.base.Procedure.Nullary 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