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.Builder
An objective builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objective
add()
Builds the objective that will be added.Objective
add(ObjectiveContext context)
Builds the objective that will be added.Objective.Builder
fromApp(ApplicationId appId)
Specifies the application which applied the filter.Objective.Builder
makePermanent()
Makes the filtering objective permanent.Objective.Builder
makeTemporary(int timeout)
Makes the filtering objective temporary.Objective
remove()
Builds the objective that will be removed.Objective
remove(ObjectiveContext context)
Builds the objective that will be removed.Objective.Builder
withPriority(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
-
-