public class MongoDbQueue<T> extends Queue<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDbQueue.Builder<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
MongoDbQueue(Class<T> clazzOfItem,
com.mongodb.MongoClient mongoClient,
String databaseName,
String queueName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(T item) |
QueueItem<T> |
getAndLockNextItem() |
Integer |
getNextSequenceNumber() |
com.mongodb.DBCollection |
getQueueCollection() |
long |
getQueueSize() |
void |
removeItem(QueueItem<T> queueItem) |
fromJson, getQueueName, toJsonpublic com.mongodb.DBCollection getQueueCollection()
public Integer getNextSequenceNumber()
public long getQueueSize()
getQueueSize in class Queue<T>public QueueItem<T> getAndLockNextItem()
getAndLockNextItem in class Queue<T>public void removeItem(QueueItem<T> queueItem)
removeItem in class Queue<T>Copyright © 2015. All rights reserved.