Class 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>>
    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:
    Contract
    • Constructor Summary

      Constructors 
      Constructor Description
      ContractQueue()
      Constructor for the ContractQueue 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.AbstractQueue

        addAll, element, remove
      • 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
      • Methods inherited from interface java.util.concurrent.BlockingQueue

        contains
      • Methods inherited from interface java.util.Collection

        addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Queue

        element, remove
    • Constructor Detail

      • ContractQueue

        public ContractQueue()
        Constructor for the ContractQueue object. 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.