Class Job

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

public abstract class Job extends Object implements io.deephaven.base.log.LogOutputAppendable
This is the base class for jobs that can be invoked by the scheduler.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Job()
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • Job

      public Job()
  • Method Details

    • invoke

      public abstract int invoke(SelectableChannel channel, int readyOps, Runnable handoff) throws IOException
      This method is invoked by the scheduler when the job's channel becomes ready.
      Parameters:
      channel - the channel which has become ready
      readyOps - the operations which can be performed on this channel without blocking
      Throws:
      IOException - - if something bad happens
    • timedOut

      public abstract void timedOut()
      This method is invoked if the job times out.
    • cancelled

      public abstract void cancelled()
      This method is called if the job is explicitly cancelled before it becomes ready or times out.
    • append

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