Class PrioritisedScheduledFutureTask<V>
- java.lang.Object
-
- org.jbpm.executor.impl.concurrent.PrioritisedScheduledFutureTask<V>
-
- All Implemented Interfaces:
Comparable<Delayed>,Runnable,Delayed,Future<V>,RunnableFuture<V>,RunnableScheduledFuture<V>,ScheduledFuture<V>
public class PrioritisedScheduledFutureTask<V> extends Object implements RunnableScheduledFuture<V>
-
-
Constructor Summary
Constructors Constructor Description PrioritisedScheduledFutureTask(RunnableScheduledFuture<V> delegate, Integer priority, Date fireDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)intcompareTo(Delayed o)Vget()Vget(long timeout, TimeUnit unit)longgetDelay(TimeUnit unit)booleanisCancelled()booleanisDone()booleanisPeriodic()voidrun()
-
-
-
Constructor Detail
-
PrioritisedScheduledFutureTask
public PrioritisedScheduledFutureTask(RunnableScheduledFuture<V> delegate, Integer priority, Date fireDate)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfaceRunnable- Specified by:
runin interfaceRunnableFuture<V>
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceFuture<V>
-
get
public V get() throws InterruptedException, ExecutionException
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
compareTo
public int compareTo(Delayed o)
- Specified by:
compareToin interfaceComparable<V>
-
isPeriodic
public boolean isPeriodic()
- Specified by:
isPeriodicin interfaceRunnableScheduledFuture<V>
-
-