Package org.onosproject.net.flow
Class FlowRuleOperations.Builder
- java.lang.Object
-
- org.onosproject.net.flow.FlowRuleOperations.Builder
-
- Enclosing class:
- FlowRuleOperations
public static final class FlowRuleOperations.Builder extends Object
A builder for constructing flow rule operations.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowRuleOperations.Builderadd(FlowRule flowRule)Appends a flow rule add to the current stage.FlowRuleOperationsbuild()Builds the immutable flow rule operations.FlowRuleOperationsbuild(FlowRuleOperationsContext cb)Builds the immutable flow rule operations.FlowRuleOperations.Buildermodify(FlowRule flowRule)Appends a flow rule modify to the current stage.FlowRuleOperations.BuildernewStage()Closes the current stage and starts a new one.FlowRuleOperations.Builderoperation(FlowRuleOperation flowRuleOperation)Appends an existing flow rule to the current stage.FlowRuleOperations.Builderremove(FlowRule flowRule)Appends a flow rule remove to the current stage.
-
-
-
Method Detail
-
add
public FlowRuleOperations.Builder add(FlowRule flowRule)
Appends a flow rule add to the current stage.- Parameters:
flowRule- flow rule- Returns:
- this
-
operation
public FlowRuleOperations.Builder operation(FlowRuleOperation flowRuleOperation)
Appends an existing flow rule to the current stage.- Parameters:
flowRuleOperation- flow rule operation- Returns:
- this
-
modify
public FlowRuleOperations.Builder modify(FlowRule flowRule)
Appends a flow rule modify to the current stage.- Parameters:
flowRule- flow rule- Returns:
- this
-
remove
public FlowRuleOperations.Builder remove(FlowRule flowRule)
Appends a flow rule remove to the current stage.- Parameters:
flowRule- flow rule- Returns:
- this
-
newStage
public FlowRuleOperations.Builder newStage()
Closes the current stage and starts a new one.- Returns:
- this
-
build
public FlowRuleOperations build()
Builds the immutable flow rule operations.- Returns:
- flow rule operations
-
build
public FlowRuleOperations build(FlowRuleOperationsContext cb)
Builds the immutable flow rule operations.- Parameters:
cb- the callback to call when this operation completes- Returns:
- flow rule operations
-
-