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 DelayQueue
add, clear, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, remove, size, take, toArray, toArrayMethods inherited from class AbstractQueue
addAll, elementMethods inherited from class AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BlockingQueue
containsMethods inherited from interface 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.
-