public static final class DefaultNextObjective.Builder extends java.lang.Object implements NextObjective.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. |
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.
|
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.
|
DefaultNextObjective.Builder |
withId(int nextId)
Specifies the id for this next objective.
|
DefaultNextObjective.Builder |
withMeta(TrafficSelector meta)
Set meta information related to 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.Builder
withId
in interface NextObjective.Builder
nextId
- an integerpublic DefaultNextObjective.Builder withType(NextObjective.Type type)
NextObjective.Builder
withType
in interface NextObjective.Builder
type
- a typepublic DefaultNextObjective.Builder addTreatment(TrafficTreatment treatment)
NextObjective.Builder
addTreatment
in interface NextObjective.Builder
treatment
- a traffic treatmentpublic DefaultNextObjective.Builder makeTemporary(int timeout)
makeTemporary
in interface Objective.Builder
timeout
- a timeoutpublic DefaultNextObjective.Builder makePermanent()
makePermanent
in interface Objective.Builder
public DefaultNextObjective.Builder fromApp(ApplicationId appId)
NextObjective.Builder
fromApp
in interface NextObjective.Builder
fromApp
in interface Objective.Builder
appId
- an application idpublic DefaultNextObjective.Builder withPriority(int priority)
withPriority
in interface NextObjective.Builder
withPriority
in interface Objective.Builder
priority
- an integerpublic DefaultNextObjective.Builder withMeta(TrafficSelector meta)
NextObjective.Builder
withMeta
in interface NextObjective.Builder
meta
- match conditionspublic NextObjective add()
NextObjective.Builder
add
in interface NextObjective.Builder
add
in interface Objective.Builder
public NextObjective remove()
NextObjective.Builder
remove
in interface NextObjective.Builder
remove
in interface Objective.Builder
public NextObjective add(ObjectiveContext context)
NextObjective.Builder
add
in interface NextObjective.Builder
add
in interface Objective.Builder
context
- an objective contextpublic NextObjective remove(ObjectiveContext context)
NextObjective.Builder
remove
in interface NextObjective.Builder
remove
in interface Objective.Builder
context
- an objective contextpublic NextObjective addToExisting()
NextObjective.Builder
Operation
ADD_TO_EXISTING.addToExisting
in interface NextObjective.Builder
public NextObjective removeFromExisting()
NextObjective.Builder
Operation
REMOVE_FROM_EXISTING.removeFromExisting
in interface NextObjective.Builder
public NextObjective addToExisting(ObjectiveContext context)
NextObjective.Builder
Operation
ADD_TO_EXISTING. The context will be used to notify the calling application.addToExisting
in interface NextObjective.Builder
context
- an objective contextpublic NextObjective removeFromExisting(ObjectiveContext context)
NextObjective.Builder
Operation
REMOVE_FROM_EXISTING. The context will be used to notify the calling application.removeFromExisting
in interface NextObjective.Builder
context
- an objective contextpublic NextObjective verify()
NextObjective.Builder
verify
in interface NextObjective.Builder
Operation
VERIFYpublic NextObjective verify(ObjectiveContext context)
NextObjective.Builder
verify
in interface NextObjective.Builder
context
- an objective contextOperation
VERIFY