Package org.simpleframework.common.lease
Class ContractQueue<T>
- All Implemented Interfaces:
Iterable<Contract<T>>,Collection<Contract<T>>,BlockingQueue<Contract<T>>,Queue<Contract<T>>
The
ContraceQueue object is used to queue contracts
between two asynchronous threads of execution. This allows the
controller to schedule the lease contract for expiry. Taking the
contracts from the queue is delayed for the contract duration.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.DelayQueue
add, clear, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, remove, size, take, toArray, toArrayMethods inherited from class java.util.AbstractQueue
addAll, elementMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingQueue
containsMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray
-
Constructor Details
-
ContractQueue
public ContractQueue()Constructor for theContractQueueobject. This is used to create a queue for passing contracts between two asynchronous threads of execution. This is used by the lease controller to schedule the lease contract for expiry.
-