E - queue entry typepublic class DefaultDistributedQueue<E> extends Object implements org.onosproject.store.service.DistributedQueue<E>
| Constructor and Description |
|---|
DefaultDistributedQueue(String name,
Database database,
org.onosproject.store.service.Serializer serializer,
org.onosproject.cluster.NodeId localNodeId,
java.util.function.Consumer<Set<org.onosproject.cluster.NodeId>> notifyConsumers) |
| Modifier and Type | Method and Description |
|---|---|
String |
name() |
E |
peek() |
CompletableFuture<E> |
pop() |
void |
push(E entry) |
long |
size() |
protected void |
tryPoll() |
public DefaultDistributedQueue(String name, Database database, org.onosproject.store.service.Serializer serializer, org.onosproject.cluster.NodeId localNodeId, java.util.function.Consumer<Set<org.onosproject.cluster.NodeId>> notifyConsumers)
public long size()
size in interface org.onosproject.store.service.DistributedQueue<E>public void push(E entry)
push in interface org.onosproject.store.service.DistributedQueue<E>public CompletableFuture<E> pop()
pop in interface org.onosproject.store.service.DistributedQueue<E>public E peek()
peek in interface org.onosproject.store.service.DistributedQueue<E>public String name()
protected void tryPoll()
Copyright © 2015. All rights reserved.