Class DependencyQueue
- java.lang.Object
-
- org.opendaylight.ovsdb.hwvtepsouthbound.transact.DependencyQueue
-
public class DependencyQueue extends Object
-
-
Constructor Summary
Constructors Constructor Description DependencyQueue(HwvtepDeviceInfo hwvtepDeviceInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addToQueue(DependentJob waitingJob)
Tries to add the job to the waiting queue.static void
close()
void
processReadyJobsFromConfigQueue(HwvtepConnectionInstance connectionInstance)
Checks if any config data dependent jobs are ready to be processed and process them.void
processReadyJobsFromOpQueue(HwvtepConnectionInstance connectionInstance)
Checks if any operational data dependent jobs are ready to be processed and process them.void
submit(Runnable runnable)
-
-
-
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)
-
-