Class ContractQueue<T>

All Implemented Interfaces:
Iterable<Contract<T>>, Collection<Contract<T>>, BlockingQueue<Contract<T>>, Queue<Contract<T>>

class ContractQueue<T> extends 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:
  • Constructor Details

    • 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.