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 java.lang.ObjectA builder for constructing flow rule operations.
- 
- 
Method SummaryAll 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- 
addpublic FlowRuleOperations.Builder add(FlowRule flowRule) Appends a flow rule add to the current stage.- Parameters:
- flowRule- flow rule
- Returns:
- this
 
 - 
operationpublic FlowRuleOperations.Builder operation(FlowRuleOperation flowRuleOperation) Appends an existing flow rule to the current stage.- Parameters:
- flowRuleOperation- flow rule operation
- Returns:
- this
 
 - 
modifypublic FlowRuleOperations.Builder modify(FlowRule flowRule) Appends a flow rule modify to the current stage.- Parameters:
- flowRule- flow rule
- Returns:
- this
 
 - 
removepublic FlowRuleOperations.Builder remove(FlowRule flowRule) Appends a flow rule remove to the current stage.- Parameters:
- flowRule- flow rule
- Returns:
- this
 
 - 
newStagepublic FlowRuleOperations.Builder newStage() Closes the current stage and starts a new one.- Returns:
- this
 
 - 
buildpublic FlowRuleOperations build() Builds the immutable flow rule operations.- Returns:
- flow rule operations
 
 - 
buildpublic FlowRuleOperations build(FlowRuleOperationsContext cb) Builds the immutable flow rule operations.- Parameters:
- cb- the callback to call when this operation completes
- Returns:
- flow rule operations
 
 
- 
 
-