public final class CommittableResizableArrayQueue<T> extends Object implements CommittableQueue<T>
Constructor and Description |
---|
CommittableResizableArrayQueue(Object emptyObject,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
addToTailUncommitted(T element) |
void |
clear() |
void |
commit() |
T |
get(int index) |
T |
getTail() |
boolean |
isEmpty() |
T |
removeFromHead() |
T |
removeFromHeadUncommitted() |
void |
rollback() |
int |
size() |
public CommittableResizableArrayQueue(Object emptyObject, int initialCapacity)
public final T get(int index)
get
in interface CommittableQueue<T>
public void addToTailUncommitted(T element)
addToTailUncommitted
in interface CommittableQueue<T>
public T removeFromHeadUncommitted()
removeFromHeadUncommitted
in interface CommittableQueue<T>
public void commit()
commit
in interface CommittableQueue<T>
public void rollback()
rollback
in interface CommittableQueue<T>
public int size()
size
in interface CommittableQueue<T>
public boolean isEmpty()
isEmpty
in interface CommittableQueue<T>
public void clear()
clear
in interface CommittableQueue<T>
public T getTail()
getTail
in interface CommittableQueue<T>
public T removeFromHead()
removeFromHead
in interface CommittableQueue<T>
Copyright © 2015–2020. All rights reserved.