Interface Objective.Builder
-
- All Known Subinterfaces:
FilteringObjective.Builder,ForwardingObjective.Builder,NextObjective.Builder
- All Known Implementing Classes:
DefaultFilteringObjective.Builder,DefaultForwardingObjective.Builder,DefaultNextObjective.Builder
- Enclosing interface:
- Objective
public static interface Objective.BuilderAn objective builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectiveadd()Builds the objective that will be added.Objectiveadd(ObjectiveContext context)Builds the objective that will be added.Objective.BuilderfromApp(ApplicationId appId)Specifies the application which applied the filter.Objective.BuildermakePermanent()Makes the filtering objective permanent.Objective.BuildermakeTemporary(int timeout)Makes the filtering objective temporary.Objectiveremove()Builds the objective that will be removed.Objectiveremove(ObjectiveContext context)Builds the objective that will be removed.Objective.BuilderwithPriority(int priority)Sets the priority for this objective.
-
-
-
Method Detail
-
makeTemporary
Objective.Builder makeTemporary(int timeout)
Makes the filtering objective temporary.- Parameters:
timeout- a timeout- Returns:
- an objective builder
-
makePermanent
Objective.Builder makePermanent()
Makes the filtering objective permanent.- Returns:
- an objective builder
-
fromApp
Objective.Builder fromApp(ApplicationId appId)
Specifies the application which applied the filter.- Parameters:
appId- an application id- Returns:
- an objective builder
-
withPriority
Objective.Builder withPriority(int priority)
Sets the priority for this objective.- Parameters:
priority- an integer- Returns:
- an objective builder
-
add
Objective add()
Builds the objective that will be added.- Returns:
- an objective
-
remove
Objective remove()
Builds the objective that will be removed.- Returns:
- an objective.
-
add
Objective add(ObjectiveContext context)
Builds the objective that will be added. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- an objective
-
remove
Objective remove(ObjectiveContext context)
Builds the objective that will be removed. The context will be used to notify the calling application.- Parameters:
context- an objective context- Returns:
- an objective
-
-