public class ExecutingWorkQueue<E> extends ExecutingDistributedPrimitive implements org.onosproject.store.service.WorkQueue<E>
AsyncAtomicValue that executes asynchronous callbacks on a user provided
Executor.| Constructor and Description |
|---|
ExecutingWorkQueue(org.onosproject.store.service.WorkQueue<E> delegateQueue,
Executor orderedExecutor,
Executor threadPoolExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addMultiple(Collection<E> items) |
CompletableFuture<Void> |
complete(Collection<String> taskIds) |
CompletableFuture<Void> |
registerTaskProcessor(Consumer<E> taskProcessor,
int parallelism,
Executor executor) |
CompletableFuture<org.onosproject.store.service.WorkQueueStats> |
stats() |
CompletableFuture<Void> |
stopProcessing() |
CompletableFuture<Collection<org.onosproject.store.service.Task<E>>> |
take(int maxItems) |
addStatusChangeListener, asyncFuture, destroy, removeStatusChangeListenerapplicationId, equals, hashCode, name, primitiveType, statusChangeListeners, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic CompletableFuture<Void> addMultiple(Collection<E> items)
addMultiple in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<Collection<org.onosproject.store.service.Task<E>>> take(int maxItems)
take in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<Void> complete(Collection<String> taskIds)
complete in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<Void> registerTaskProcessor(Consumer<E> taskProcessor, int parallelism, Executor executor)
registerTaskProcessor in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<Void> stopProcessing()
stopProcessing in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<org.onosproject.store.service.WorkQueueStats> stats()
stats in interface org.onosproject.store.service.WorkQueue<E>