public class Scheduler extends GCUBEScheduledHandler<GHNContext>
GCUBEScheduledHandler.Modeexception, exceptionCount, interval, repeathandled, logger, producer| Constructor and Description |
|---|
Scheduler(GHNContext ctxt,
long interval,
GCUBEScheduledHandler.Mode mode)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
repeat(Exception exception,
int exceptionCount)
Indicates whether the scheduling should continue.
|
getInterval, getMode, getScheduled, onIteration, run, setInterval, setMode, setScheduled, stopclearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, subscribe, undo, unsubscribepublic Scheduler(GHNContext ctxt, long interval, GCUBEScheduledHandler.Mode mode)
ctxt - the GHNContext.interval - the schedule interval.mode - the scheduling mode.protected boolean repeat(Exception exception, int exceptionCount)
true if no exception occurred during the iteration,
and false otherwise. Override to implement
specific conditions.repeat in class GCUBEScheduledHandler<GHNContext>exception - any exception which may have occurred during the iteration,
or null if the iteration completed successfully.exceptionCount - the number of exceptions which have occurred so far during the schedule.true if the scheduling should continue, false otherwise.Copyright © 2015. All Rights Reserved.