T
- The type of elements in the Queue.java.util.Collection<T>
, DistributedDataStructure
, java.lang.Iterable<T>
, Lockable
, Notifiable
, java.util.Queue<T>
public interface DistributedQueue<T> extends java.util.Queue<T>, DistributedDataStructure, Notifiable
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Removes all the elements from this collection (optional operation).
|
void |
copyTo(T[] array,
int arrayIndex) |
Copies the Queue elements to the specified array, starting at the specified index.
|
T |
peek() |
Returns the object at the beginning of the Queue without removing it.
|
java.lang.Object[] |
toArray() |
Copies the Queue elements to a new array.
|
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray
getKey, getWriteThruOptions, setWriteThruOptions
addChangeListener, removeChangeListener
void clear()
clear
in interface java.util.Collection<T>
java.lang.UnsupportedOperationException
- if the clear
operation
is not supported by this collection.void copyTo(T[] array, int arrayIndex)
array
- The destination array of the elements copied from Queue.arrayIndex
- The zero-based index in array at which copying begins.T peek()
peek
in interface java.util.Queue<T>
java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>