Package org.simpleframework.common.lease
Class ContractQueue<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.DelayQueue<Contract<T>>
-
- org.simpleframework.common.lease.ContractQueue<T>
-
- All Implemented Interfaces:
java.lang.Iterable<Contract<T>>
,java.util.Collection<Contract<T>>
,java.util.concurrent.BlockingQueue<Contract<T>>
,java.util.Queue<Contract<T>>
class ContractQueue<T> extends java.util.concurrent.DelayQueue<Contract<T>>
TheContraceQueue
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:
Contract
-
-
Constructor Summary
Constructors Constructor Description ContractQueue()
Constructor for theContractQueue
object.
-
Method Summary
-
Methods inherited from class java.util.concurrent.DelayQueue
add, clear, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, take, toArray, toArray
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-