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.Builder
add(FlowRule flowRule)
Appends a flow rule add to the current stage.FlowRuleOperations
build()
Builds the immutable flow rule operations.FlowRuleOperations
build(FlowRuleOperationsContext cb)
Builds the immutable flow rule operations.FlowRuleOperations.Builder
modify(FlowRule flowRule)
Appends a flow rule modify to the current stage.FlowRuleOperations.Builder
newStage()
Closes the current stage and starts a new one.FlowRuleOperations.Builder
operation(FlowRuleOperation flowRuleOperation)
Appends an existing flow rule to the current stage.FlowRuleOperations.Builder
remove(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
-
-