E - task payload type.public class DefaultDistributedWorkQueue<E> extends Object implements org.onosproject.store.service.WorkQueue<E>
WorkQueue.| Constructor and Description |
|---|
DefaultDistributedWorkQueue(org.onosproject.store.service.WorkQueue<byte[]> backingQueue,
org.onosproject.store.service.Serializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addMultiple(Collection<E> items) |
CompletableFuture<Void> |
complete(Collection<String> ids) |
CompletableFuture<Void> |
destroy() |
String |
name() |
CompletableFuture<Void> |
registerTaskProcessor(Consumer<E> callback,
int parallelism,
Executor executor) |
CompletableFuture<org.onosproject.store.service.WorkQueueStats> |
stats() |
CompletableFuture<Void> |
stopProcessing() |
CompletableFuture<Collection<org.onosproject.store.service.Task<E>>> |
take(int maxTasks) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DefaultDistributedWorkQueue(org.onosproject.store.service.WorkQueue<byte[]> backingQueue,
org.onosproject.store.service.Serializer serializer)
public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic 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 maxTasks)
take in interface org.onosproject.store.service.WorkQueue<E>public CompletableFuture<Void> complete(Collection<String> ids)
complete 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>public CompletableFuture<Void> registerTaskProcessor(Consumer<E> callback, 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<Void> destroy()
destroy in interface org.onosproject.store.service.DistributedPrimitive