Class DependencyQueue


  • public class DependencyQueue
    extends Object
    • Constructor Detail

      • DependencyQueue

        public DependencyQueue​(HwvtepDeviceInfo hwvtepDeviceInfo)
    • Method Detail

      • addToQueue

        public boolean addToQueue​(DependentJob waitingJob)
        Tries to add the job to the waiting queue.
        Parameters:
        waitingJob - The job to be enqueued
        Returns:
        true if it is successfully added to the queue
      • processReadyJobsFromConfigQueue

        public void processReadyJobsFromConfigQueue​(HwvtepConnectionInstance connectionInstance)
        Checks if any config data dependent jobs are ready to be processed and process them.
        Parameters:
        connectionInstance - The connection instance
      • processReadyJobsFromOpQueue

        public void processReadyJobsFromOpQueue​(HwvtepConnectionInstance connectionInstance)
        Checks if any operational data dependent jobs are ready to be processed and process them.
        Parameters:
        connectionInstance - The connection instance
      • close

        public static void close()
      • submit

        public void submit​(Runnable runnable)