Package io.deephaven.io.sched
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 java.lang.Object implements io.deephaven.base.log.LogOutputAppendableThis is the base class for jobs that can be invoked by the scheduler.
-
-
Constructor Summary
Constructors Constructor Description Job()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description io.deephaven.base.log.LogOutputappend(io.deephaven.base.log.LogOutput logOutput)abstract voidcancelled()This method is called if the job is explicitly cancelled before it becomes ready or times out.abstract intinvoke(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.abstract voidtimedOut()This method is invoked if the job times out.
-
-
-
Method Detail
-
invoke
public abstract int invoke(java.nio.channels.SelectableChannel channel, int readyOps, io.deephaven.base.Procedure.Nullary handoff) throws java.io.IOExceptionThis method is invoked by the scheduler when the job's channel becomes ready.- Parameters:
channel- the channel which has become readyreadyOps- the operations which can be performed on this channel without blocking- Throws:
java.io.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:
appendin interfaceio.deephaven.base.log.LogOutputAppendable
-
-