public static final class DefaultForwardingObjective.Builder extends Object implements ForwardingObjective.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. 
 | 
DefaultForwardingObjective.Builder | 
fromApp(ApplicationId appId)
Assigns an application id. 
 | 
DefaultForwardingObjective.Builder | 
makePermanent()
Makes the filtering objective permanent. 
 | 
DefaultForwardingObjective.Builder | 
makeTemporary(int timeout)
Makes the filtering objective temporary. 
 | 
DefaultForwardingObjective.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. 
 | 
DefaultForwardingObjective.Builder | 
withFlag(ForwardingObjective.Flag flag)
Assigns the flag to the forwarding objective. 
 | 
DefaultForwardingObjective.Builder | 
withMeta(TrafficSelector meta)
Set meta information related to this forwarding objective. 
 | 
DefaultForwardingObjective.Builder | 
withPriority(int priority)
Sets the priority for this objective. 
 | 
DefaultForwardingObjective.Builder | 
withSelector(TrafficSelector selector)
Assigns a selector to the forwarding objective. 
 | 
DefaultForwardingObjective.Builder | 
withTreatment(TrafficTreatment treatment)
Assigns the treatment for this forwarding objective. 
 | 
public DefaultForwardingObjective.Builder withSelector(TrafficSelector selector)
ForwardingObjective.BuilderwithSelector in interface ForwardingObjective.Builderselector - a traffic selectorpublic DefaultForwardingObjective.Builder nextStep(int nextId)
ForwardingObjective.BuildernextStep in interface ForwardingObjective.BuildernextId - a next objective id.public DefaultForwardingObjective.Builder withTreatment(TrafficTreatment treatment)
ForwardingObjective.BuilderwithTreatment in interface ForwardingObjective.Buildertreatment - a traffic treatmentpublic DefaultForwardingObjective.Builder withFlag(ForwardingObjective.Flag flag)
ForwardingObjective.BuilderwithFlag in interface ForwardingObjective.Builderflag - a flagpublic DefaultForwardingObjective.Builder makeTemporary(int timeout)
Objective.BuildermakeTemporary in interface Objective.Buildertimeout - a timeoutpublic DefaultForwardingObjective.Builder makePermanent()
ForwardingObjective.BuildermakePermanent in interface ForwardingObjective.BuildermakePermanent in interface Objective.Builderpublic DefaultForwardingObjective.Builder fromApp(ApplicationId appId)
ForwardingObjective.BuilderfromApp in interface ForwardingObjective.BuilderfromApp in interface Objective.BuilderappId - an application idpublic DefaultForwardingObjective.Builder withPriority(int priority)
ForwardingObjective.BuilderwithPriority in interface ForwardingObjective.BuilderwithPriority in interface Objective.Builderpriority - an integerpublic DefaultForwardingObjective.Builder withMeta(TrafficSelector meta)
ForwardingObjective.BuilderwithMeta in interface ForwardingObjective.Buildermeta - match conditionspublic ForwardingObjective add()
ForwardingObjective.Builderadd in interface ForwardingObjective.Builderadd in interface Objective.Builderpublic ForwardingObjective remove()
ForwardingObjective.Builderremove in interface ForwardingObjective.Builderremove in interface Objective.Builderpublic ForwardingObjective add(ObjectiveContext context)
ForwardingObjective.Builderadd in interface ForwardingObjective.Builderadd in interface Objective.Buildercontext - an objective contextpublic ForwardingObjective remove(ObjectiveContext context)
ForwardingObjective.Builderremove in interface ForwardingObjective.Builderremove in interface Objective.Buildercontext - an objective context