public static interface ForwardingObjective.Builder extends Objective.Builder
Modifier and Type | Method and Description |
---|---|
ForwardingObjective |
add()
Builds the forwarding objective that will be added.
|
ForwardingObjective |
add(ObjectiveContext context)
Builds the forwarding objective that will be added.
|
ForwardingObjective.Builder |
nextStep(int nextId)
Assigns a next step to the forwarding objective.
|
ForwardingObjective |
remove()
Builds the forwarding objective that will be removed.
|
ForwardingObjective |
remove(ObjectiveContext context)
Builds the forwarding objective that will be removed.
|
ForwardingObjective.Builder |
withFlag(ForwardingObjective.Flag flag)
Assigns the flag to the forwarding objective.
|
ForwardingObjective.Builder |
withMeta(TrafficSelector selector)
Set meta information related to this forwarding objective.
|
ForwardingObjective.Builder |
withSelector(TrafficSelector selector)
Assigns a selector to the forwarding objective.
|
ForwardingObjective.Builder |
withTreatment(TrafficTreatment treatment)
Assigns the treatment for this forwarding objective.
|
fromApp, makePermanent, makeTemporary, withPriority
ForwardingObjective.Builder withSelector(TrafficSelector selector)
selector
- a traffic selectorForwardingObjective.Builder nextStep(int nextId)
nextId
- a next objective id.ForwardingObjective.Builder withTreatment(TrafficTreatment treatment)
treatment
- a traffic treatmentForwardingObjective.Builder withFlag(ForwardingObjective.Flag flag)
flag
- a flagForwardingObjective.Builder withMeta(TrafficSelector selector)
selector
- match conditionsForwardingObjective add()
add
in interface Objective.Builder
ForwardingObjective remove()
remove
in interface Objective.Builder
ForwardingObjective add(ObjectiveContext context)
add
in interface Objective.Builder
context
- an objective contextForwardingObjective remove(ObjectiveContext context)
remove
in interface Objective.Builder
context
- an objective context