Package com.google.gerrit.server.git
Class WorkQueue.Task<V>
java.lang.Object
com.google.gerrit.server.git.WorkQueue.Task<V>
- All Implemented Interfaces:
- Comparable<Delayed>,- Runnable,- Delayed,- Future<V>,- RunnableFuture<V>,- RunnableScheduledFuture<V>,- ScheduledFuture<V>
- Direct Known Subclasses:
- WorkQueue.ProjectTask
- Enclosing class:
- WorkQueue
A wrapper around a scheduled Runnable, as maintained in the queue.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumSummarized status of a single task.
- 
Method Summary
- 
Method Details- 
getTaskIdpublic int getTaskId()
- 
getState
- 
getStartTime
- 
getQueueName
- 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) 
- 
compareTo- Specified by:
- compareToin interface- Comparable<V>
 
- 
get- Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
 
- 
getpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
- getin interface- Future<V>
- Throws:
- InterruptedException
- ExecutionException
- TimeoutException
 
- 
getDelay
- 
isCancelledpublic boolean isCancelled()- Specified by:
- isCancelledin interface- Future<V>
 
- 
isDonepublic boolean isDone()
- 
isPeriodicpublic boolean isPeriodic()- Specified by:
- isPeriodicin interface- RunnableScheduledFuture<V>
 
- 
runpublic void run()- Specified by:
- runin interface- Runnable
- Specified by:
- runin interface- RunnableFuture<V>
 
- 
toString
 
-