public static final class DefaultNextObjective.Builder extends Object implements NextObjective.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
NextObjective |
add()
Builds the next objective that will be added.
|
NextObjective |
add(ObjectiveContext context)
Builds the next objective that will be added.
|
DefaultNextObjective.Builder |
addTreatment(TrafficTreatment treatment)
Adds a treatment to this next step.
|
DefaultNextObjective.Builder |
fromApp(ApplicationId appId)
Specifies the application which applied the filter.
|
DefaultNextObjective.Builder |
makePermanent()
Noop.
|
DefaultNextObjective.Builder |
makeTemporary(int timeout)
Noop.
|
NextObjective |
remove()
Builds the next objective that will be removed.
|
NextObjective |
remove(ObjectiveContext context)
Builds the next objective that will be removed.
|
DefaultNextObjective.Builder |
withId(int nextId)
Specifies the id for this next objective.
|
DefaultNextObjective.Builder |
withPriority(int priority)
Noop.
|
DefaultNextObjective.Builder |
withType(NextObjective.Type type)
Sets the type of next step.
|
public DefaultNextObjective.Builder withId(int nextId)
NextObjective.BuilderwithId in interface NextObjective.BuildernextId - an integerpublic DefaultNextObjective.Builder withType(NextObjective.Type type)
NextObjective.BuilderwithType in interface NextObjective.Buildertype - a typepublic DefaultNextObjective.Builder addTreatment(TrafficTreatment treatment)
NextObjective.BuilderaddTreatment in interface NextObjective.Buildertreatment - a traffic treatmentpublic DefaultNextObjective.Builder makeTemporary(int timeout)
makeTemporary in interface Objective.Buildertimeout - a timeoutpublic DefaultNextObjective.Builder makePermanent()
makePermanent in interface Objective.Builderpublic DefaultNextObjective.Builder fromApp(ApplicationId appId)
NextObjective.BuilderfromApp in interface NextObjective.BuilderfromApp in interface Objective.BuilderappId - an application idpublic DefaultNextObjective.Builder withPriority(int priority)
withPriority in interface NextObjective.BuilderwithPriority in interface Objective.Builderpriority - an integerpublic NextObjective add()
NextObjective.Builderadd in interface NextObjective.Builderpublic NextObjective remove()
NextObjective.Builderremove in interface NextObjective.Builderpublic NextObjective add(ObjectiveContext context)
NextObjective.Builderadd in interface NextObjective.Buildercontext - an objective contextpublic NextObjective remove(ObjectiveContext context)
NextObjective.Builderremove in interface NextObjective.Buildercontext - an objective contextCopyright © 2015. All rights reserved.