Interface DistributedQueue<T>
-
- Type Parameters:
T- The type of elements in the Queue.
- All Superinterfaces:
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
This interface contains methods and parameters for Distrubited Queue.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Removes all the elements from this collection (optional operation).voidcopyTo(T[] array, int arrayIndex)Copies the Queue elements to the specified array, starting at the specified index.Tpeek()Returns the object at the beginning of the Queue without removing it.java.lang.Object[]toArray()Copies the Queue elements to a new array.-
Methods inherited from interface java.util.Collection
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
-
Methods inherited from interface com.alachisoft.ncache.client.datastructures.DistributedDataStructure
getKey, getWriteThruOptions, setWriteThruOptions
-
Methods inherited from interface com.alachisoft.ncache.client.datastructures.Notifiable
addChangeListener, removeChangeListener
-
-
-
-
Method Detail
-
clear
void clear()
Removes all the elements from this collection (optional operation). The collection will be empty after this method returns.- Specified by:
clearin interfacejava.util.Collection<T>- Throws:
java.lang.UnsupportedOperationException- if theclearoperation is not supported by this collection.
-
copyTo
void copyTo(T[] array, int arrayIndex)
Copies the Queue elements to the specified array, starting at the specified index.- Parameters:
array- The destination array of the elements copied from Queue.arrayIndex- The zero-based index in array at which copying begins.
-
peek
T peek()
Returns the object at the beginning of the Queue without removing it.- Specified by:
peekin interfacejava.util.Queue<T>- Returns:
- The object at the beginning of the Queue.
-
toArray
java.lang.Object[] toArray()
Copies the Queue elements to a new array.- Specified by:
toArrayin interfacejava.util.Collection<T>- Returns:
- A new array containing elements copied from the Queue.
-
-