public class CallableQueueService.CallableWrapper<E> extends PriorityDelayQueue.QueueElement<E> implements Runnable, Callable<E>
| Constructor and Description |
|---|
CallableWrapper(XCallable<E> callable,
long delay) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToUniqueCallables()
Add the keys to the set
|
E |
call() |
boolean |
filterDuplicates()
Filter the duplicate callables from the list before queue this.
|
void |
removeFromUniqueCallables()
Remove the keys from the set
|
void |
run() |
compareTo, getDelay, getElement, getPriority, setDelay, toStringcancel, done, get, get, isCancelled, isDone, runAndReset, set, setExceptionpublic CallableWrapper(XCallable<E> callable, long delay)
public void run()
run in interface Runnablerun in interface RunnableFuture<E>run in class FutureTask<E>public boolean filterDuplicates()
If it is single callable, checking if key is in unique map or not.
If it is composite callable, remove duplicates callables from the composite.
public void addToUniqueCallables()
public void removeFromUniqueCallables()
Copyright © 2018 Apache Software Foundation. All rights reserved.