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
 
 public static class WorkQueue.Task<V> extends Object implements RunnableScheduledFuture<V> A wrapper around a scheduled Runnable, as maintained in the queue.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWorkQueue.Task.StateSummarized status of a single task.
 - 
Method SummaryAll 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)StringgetQueueName()DategetStartTime()WorkQueue.Task.StategetState()intgetTaskId()booleanisCancelled()booleanisDone()booleanisPeriodic()voidrun()StringtoString()
 
- 
- 
- 
Method Detail- 
getTaskIdpublic int getTaskId() 
 - 
getStatepublic WorkQueue.Task.State getState() 
 - 
getStartTimepublic Date getStartTime() 
 - 
getQueueNamepublic String getQueueName() 
 - 
cancelpublic boolean cancel(boolean mayInterruptIfRunning) 
 - 
compareTopublic int compareTo(Delayed o) - Specified by:
- compareToin interface- Comparable<V>
 
 - 
getpublic V get() throws InterruptedException, ExecutionException - 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
 
 - 
isCancelledpublic boolean isCancelled() - Specified by:
- isCancelledin interface- Future<V>
 
 - 
isPeriodicpublic boolean isPeriodic() - Specified by:
- isPeriodicin interface- RunnableScheduledFuture<V>
 
 - 
runpublic void run() - Specified by:
- runin interface- Runnable
- Specified by:
- runin interface- RunnableFuture<V>
 
 
- 
 
-