|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sasl.common.schedule.QuartzScheduledFuture<V>
public class QuartzScheduledFuture<V>
The class is a helper class for the
QuartzServiceAdapter and should not be used outside the package.
Implements together with other helper classes a ScheduledFuture that gets
executed by a Quartz scheduler over the
QuartzServiceAdapter.
| Constructor Summary | |
|---|---|
QuartzScheduledFuture(org.quartz.Scheduler quartzScheduler,
org.quartz.JobDetail jobDetail,
CallableExecutionStatus callableExecutionStatus,
Date expectedExecutionDate)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Tries to cancel the future at the Quartz scheduler. |
int |
compareTo(Delayed delayed)
Returns 1, if the given delayed is null or the remaining delay time is lesser than the remaining delay time of this object. |
V |
get()
|
V |
get(long timeVal,
TimeUnit timeUnit)
|
long |
getDelay(TimeUnit timeUnit)
|
String |
getName()
Returns the name of this job listener which will be a name of the form fullQualifiedPackagename-sharedLogicalClockValue. |
boolean |
isCancelled()
Returns true if the future was cancelled before the execution started, false else. |
boolean |
isDone()
Returns true, if the future was executed and terminated regular or via an exception. |
void |
jobExecutionVetoed(org.quartz.JobExecutionContext jobExecutionContext)
Just a stub method, not relevant. |
void |
jobToBeExecuted(org.quartz.JobExecutionContext jobExecutionContext)
Just a stub method, not relevant. |
void |
jobWasExecuted(org.quartz.JobExecutionContext jobExecutionContext,
org.quartz.JobExecutionException jobExecutionException)
Removes this object from the list of job listeners of the Quartz scheduler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuartzScheduledFuture(org.quartz.Scheduler quartzScheduler,
org.quartz.JobDetail jobDetail,
CallableExecutionStatus callableExecutionStatus,
Date expectedExecutionDate)
throws IllegalArgumentException
quartzScheduler - non nulljobDetail - non nullcallableExecutionStatus - non nullexpectedExecutionDate - non null
IllegalArgumentException - if one of the input parameters are null.| Method Detail |
|---|
public String getName()
getName in interface org.quartz.JobListenerJobListener.getName()public void jobExecutionVetoed(org.quartz.JobExecutionContext jobExecutionContext)
jobExecutionVetoed in interface org.quartz.JobListenerJobListener.jobExecutionVetoed(org.quartz.JobExecutionContext)public void jobToBeExecuted(org.quartz.JobExecutionContext jobExecutionContext)
jobToBeExecuted in interface org.quartz.JobListenerJobListener.jobToBeExecuted(org.quartz.JobExecutionContext)
public void jobWasExecuted(org.quartz.JobExecutionContext jobExecutionContext,
org.quartz.JobExecutionException jobExecutionException)
get() or get(long, TimeUnit)
methods.
jobWasExecuted in interface org.quartz.JobListenerJobListener.jobWasExecuted(org.quartz.JobExecutionContext,
org.quartz.JobExecutionException)public long getDelay(TimeUnit timeUnit)
getDelay in interface DelayedDelayed.getDelay(java.util.concurrent.TimeUnit)public int compareTo(Delayed delayed)
compareTo in interface Comparable<Delayed>Comparable.compareTo(java.lang.Object)public boolean cancel(boolean mayInterruptIfRunning)
get() and get(long, TimeUnit) will be notified.
cancel in interface Future<V>mayInterruptIfRunning - does not have any affect at this implementation.
Future.cancel(boolean)
public V get()
throws InterruptedException,
ExecutionException
get in interface Future<V>InterruptedException
ExecutionExceptionFuture.get()
public V get(long timeVal,
TimeUnit timeUnit)
throws InterruptedException,
ExecutionException,
TimeoutException,
IllegalArgumentException
get in interface Future<V>IllegalArgumentException - if timeUnit is null or timeVal is lesser than 0.
InterruptedException
ExecutionException
TimeoutExceptionFuture.get(long, java.util.concurrent.TimeUnit)public boolean isCancelled()
isCancelled in interface Future<V>Future.isCancelled()public boolean isDone()
isDone in interface Future<V>Future.isDone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||