Interface Objective
-
- All Known Subinterfaces:
FilteringObjective,ForwardingObjective,NextObjective
- All Known Implementing Classes:
DefaultFilteringObjective,DefaultForwardingObjective,DefaultNextObjective
@Beta public interface ObjectiveBase representation of a flow-objective description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceObjective.BuilderAn objective builder.static classObjective.OperationType of operation.
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_PERMANENTstatic intDEFAULT_PRIORITYstatic intDEFAULT_TIMEOUTstatic intMAX_PRIORITYstatic intMIN_PRIORITY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationIdappId()The application which applied this objective.java.util.Optional<ObjectiveContext>context()Obtains an optional context.Objective.Buildercopy()Returns a new builder set to create a copy of this objective.intid()An identifier for this objective.Objective.Operationop()The type of operation for this objective.booleanpermanent()Whether this objective is permanent.intpriority()The priority for this objective.inttimeout()The timeout for this objective.
-
-
-
Field Detail
-
DEFAULT_PERMANENT
static final boolean DEFAULT_PERMANENT
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
MIN_PRIORITY
static final int MIN_PRIORITY
- See Also:
- Constant Field Values
-
MAX_PRIORITY
static final int MAX_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
int id()
An identifier for this objective.- Returns:
- an integer
-
priority
int priority()
The priority for this objective.- Returns:
- an integer
-
appId
ApplicationId appId()
The application which applied this objective.- Returns:
- an application id
-
timeout
int timeout()
The timeout for this objective.- Returns:
- an integer
-
permanent
boolean permanent()
Whether this objective is permanent.- Returns:
- a boolean
-
op
Objective.Operation op()
The type of operation for this objective.- Returns:
- an operation
-
context
java.util.Optional<ObjectiveContext> context()
Obtains an optional context.- Returns:
- optional; which will be empty if there is no context. Otherwise it will return the context.
-
copy
Objective.Builder copy()
Returns a new builder set to create a copy of this objective.- Returns:
- new builder
-
-