Package org.multiverse.api.collections
Interface TxnStack<E>
-
- Type Parameters:
E
-
- All Superinterfaces:
Collection<E>
,Iterable<E>
,TxnCollection<E>
,TxnIterable<E>
- All Known Implementing Classes:
NaiveTxnStack
public interface TxnStack<E> extends TxnCollection<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCapacity()
boolean
offer(E item)
boolean
offer(Txn txn, E item)
E
peek()
E
peek(Txn txn)
E
poll()
E
poll(Txn txn)
E
pop()
E
pop(Txn txn)
void
push(E item)
void
push(Txn txn, E item)
-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface org.multiverse.api.collections.TxnCollection
add, addAll, addAll, addAll, clear, contains, containsAll, getStm, isEmpty, remove, size, toString
-
Methods inherited from interface org.multiverse.api.collections.TxnIterable
iterator, iterator
-
-