@Beta public final class DefaultForwardingObjective extends java.lang.Object implements ForwardingObjective
Modifier and Type | Class and Description |
---|---|
static class |
DefaultForwardingObjective.Builder |
ForwardingObjective.Flag
Objective.Operation
DEFAULT_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()
ForwardingObjective
selector
in interface ForwardingObjective
public java.lang.Integer nextId()
ForwardingObjective
nextId
in interface ForwardingObjective
public TrafficTreatment treatment()
ForwardingObjective
treatment
in interface ForwardingObjective
public ForwardingObjective.Flag flag()
ForwardingObjective
flag
in interface ForwardingObjective
public int id()
Objective
public int priority()
Objective
public ApplicationId appId()
Objective
public int timeout()
Objective
public boolean permanent()
Objective
public Objective.Operation op()
Objective
public java.util.Optional<ObjectiveContext> context()
Objective
public TrafficSelector meta()
ForwardingObjective
meta
in interface ForwardingObjective
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static DefaultForwardingObjective.Builder builder()
public static DefaultForwardingObjective.Builder builder(ForwardingObjective fwd)
fwd
- base fwdpublic DefaultForwardingObjective.Builder copy()
Objective