public static interface NextObjective.Builder extends Objective.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.
|
NextObjective |
addToExisting()
Build the next objective that will be added, with
Operation
ADD_TO_EXISTING. |
NextObjective |
addToExisting(ObjectiveContext context)
Builds the next objective that will be added, with
Operation
ADD_TO_EXISTING. |
NextObjective.Builder |
addTreatment(TrafficTreatment treatment)
Adds a treatment to this next step.
|
NextObjective.Builder |
fromApp(ApplicationId appId)
Specifies the application which applied the filter.
|
NextObjective |
remove()
Builds the next objective that will be removed.
|
NextObjective |
remove(ObjectiveContext context)
Builds the next objective that will be removed.
|
NextObjective |
removeFromExisting()
Build the next objective that will be removed, with
Operation
REMOVE_FROM_EXISTING. |
NextObjective |
removeFromExisting(ObjectiveContext context)
Builds the next objective that will be removed, with
Operation
REMOVE_FROM_EXISTING. |
NextObjective |
verify()
Builds the next objective that needs to be verified.
|
NextObjective |
verify(ObjectiveContext context)
Builds the next objective that needs to be verified.
|
NextObjective.Builder |
withId(int nextId)
Specifies the id for this next objective.
|
NextObjective.Builder |
withMeta(TrafficSelector selector)
Set meta information related to this next objective.
|
NextObjective.Builder |
withPriority(int priority)
Sets the priority for this objective.
|
NextObjective.Builder |
withType(NextObjective.Type type)
Sets the type of next step.
|
makePermanent, makeTemporary
NextObjective.Builder withId(int nextId)
nextId
- an integerNextObjective.Builder withType(NextObjective.Type type)
type
- a typeNextObjective.Builder addTreatment(TrafficTreatment treatment)
treatment
- a traffic treatmentNextObjective.Builder fromApp(ApplicationId appId)
fromApp
in interface Objective.Builder
appId
- an application idNextObjective.Builder withPriority(int priority)
withPriority
in interface Objective.Builder
priority
- an integerNextObjective.Builder withMeta(TrafficSelector selector)
selector
- match conditionsNextObjective add()
add
in interface Objective.Builder
NextObjective remove()
remove
in interface Objective.Builder
NextObjective add(ObjectiveContext context)
add
in interface Objective.Builder
context
- an objective contextNextObjective remove(ObjectiveContext context)
remove
in interface Objective.Builder
context
- an objective contextNextObjective addToExisting()
Operation
ADD_TO_EXISTING.NextObjective removeFromExisting()
Operation
REMOVE_FROM_EXISTING.NextObjective addToExisting(ObjectiveContext context)
Operation
ADD_TO_EXISTING. The context will be used to notify the calling application.context
- an objective contextNextObjective removeFromExisting(ObjectiveContext context)
Operation
REMOVE_FROM_EXISTING. The context will be used to notify the calling application.context
- an objective contextNextObjective verify()
Operation
VERIFYNextObjective verify(ObjectiveContext context)
context
- an objective contextOperation
VERIFY