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
This is the base class for jobs that can be invoked by the scheduler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.base.log.LogOutputappend(io.deephaven.base.log.LogOutput logOutput) abstract voidThis method is called if the job is explicitly cancelled before it becomes ready or times out.abstract intinvoke(SelectableChannel channel, int readyOps, Runnable 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.
-
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 readyreadyOps- 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:
appendin interfaceio.deephaven.base.log.LogOutputAppendable
-