public final class JournalQueue extends Object
AbstractJournalOperation objects| Constructor and Description |
|---|
JournalQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLast(AbstractJournalOperation op)
Append an operation at the end of the queue
|
AbstractJournalOperation |
getFirst()
Return the first operation in queue
|
void |
migrateTo(JournalQueue otherQueue)
Migrate all operations to the given target queue
|
AbstractJournalOperation |
removeFirst()
Remove the first available journal operation in queue
|
int |
size()
Get the queue size
|
public AbstractJournalOperation getFirst()
public void addLast(AbstractJournalOperation op)
op - a journal operationpublic AbstractJournalOperation removeFirst()
NoSuchElementException - if queue is emptypublic void migrateTo(JournalQueue otherQueue)
otherQueue - target journal queuepublic int size()
Copyright © 2019. All rights reserved.