@Beta public final class DefaultForwardingObjective extends java.lang.Object implements ForwardingObjective
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultForwardingObjective.Builder |
ForwardingObjective.FlagObjective.OperationDEFAULT_PERMANENT, DEFAULT_PRIORITY, DEFAULT_TIMEOUT, MAX_PRIORITY, MIN_PRIORITY| Modifier and Type | Method and Description |
|---|---|
ApplicationId |
appId()
The application which applied this objective.
|
static DefaultForwardingObjective.Builder |
builder()
Returns a new builder.
|
static DefaultForwardingObjective.Builder |
builder(ForwardingObjective fwd)
Returns a new builder primed to produce entities
patterned after the supplied forwarding objective.
|
java.util.Optional<ObjectiveContext> |
context()
Obtains an optional context.
|
DefaultForwardingObjective.Builder |
copy()
Returns a new builder set to create a copy of this objective.
|
boolean |
equals(java.lang.Object obj) |
ForwardingObjective.Flag |
flag()
Obtain the type of this objective.
|
int |
hashCode() |
int |
id()
An identifier for this objective.
|
TrafficSelector |
meta()
Auxiliary optional information provided to the device driver.
|
java.lang.Integer |
nextId()
Obtain the traffic treatment for this objective.
|
Objective.Operation |
op()
The type of operation for this objective.
|
boolean |
permanent()
Whether this objective is permanent.
|
int |
priority()
The priority for this objective.
|
TrafficSelector |
selector()
Obtain the selector for this objective.
|
int |
timeout()
The timeout for this objective.
|
java.lang.String |
toString() |
TrafficTreatment |
treatment()
A traffic treatment for this forwarding objective.
|
public TrafficSelector selector()
ForwardingObjectiveselector in interface ForwardingObjectivepublic java.lang.Integer nextId()
ForwardingObjectivenextId in interface ForwardingObjectivepublic TrafficTreatment treatment()
ForwardingObjectivetreatment in interface ForwardingObjectivepublic ForwardingObjective.Flag flag()
ForwardingObjectiveflag in interface ForwardingObjectivepublic int id()
Objectivepublic int priority()
Objectivepublic ApplicationId appId()
Objectivepublic int timeout()
Objectivepublic boolean permanent()
Objectivepublic Objective.Operation op()
Objectivepublic java.util.Optional<ObjectiveContext> context()
Objectivepublic TrafficSelector meta()
ForwardingObjectivemeta in interface ForwardingObjectivepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static DefaultForwardingObjective.Builder builder()
public static DefaultForwardingObjective.Builder builder(ForwardingObjective fwd)
fwd - base fwdpublic DefaultForwardingObjective.Builder copy()
Objective