public final class FlowRemoverQueue extends Object implements TxHook
FlowRemoverQueue describes a queue for FlowRemover instances
that remove the specified flow entries.
An instance of this class must be obtained by
TxContext.getSpecific(Class). All the queued FlowRemover
instances are applied just after the successful completion of the
MD-SAL datastore transaction associated with this instance.
Note that all the queued FlowRemover instances will be discarded
when the transaction is canceled.
| Constructor and Description |
|---|
FlowRemoverQueue(TxContext ctx)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enqueue(FlowRemover remover)
Enqueue the given
FlowRemover instance. |
int |
getOrder()
Return an integer that determines the order of execution.
|
Collection<FlowRemover> |
getRequests()
Return an unmodifiable collection that contains flow removers in the
queue.
|
void |
run(TxContext ctx,
TxTask<?> task)
Invoked when the MD-SAL datastore transaction has been submitted
successfully.
|
public FlowRemoverQueue(TxContext ctx)
ctx - A runtime context for transaction task.public void enqueue(FlowRemover remover)
FlowRemover instance.remover - A FlowRemover instance that specifies flow
entries to be removed.public Collection<FlowRemover> getRequests()
FlowRemover instances.public void run(TxContext ctx, TxTask<?> task)
This method removes all the flow entries specified by the queued
FlowRemover instances.
Copyright © 2018 OpenDaylight. All rights reserved.