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 |
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, withPriorityForwardingObjective.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 add()
ForwardingObjective remove()
ForwardingObjective add(ObjectiveContext context)
context - an objective contextForwardingObjective remove(ObjectiveContext context)
context - an objective contextCopyright © 2015. All rights reserved.