@Beta public final class DefaultForwardingObjective extends 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.
|
Optional<ObjectiveContext> |
context()
Obtains an optional context.
|
DefaultForwardingObjective.Builder |
copy()
Returns a new builder set to create a copy of this objective.
|
boolean |
equals(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.
|
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.
|
String |
toString() |
TrafficTreatment |
treatment()
A traffic treatment for this forwarding objective.
|
public TrafficSelector selector()
ForwardingObjective
selector
in interface ForwardingObjective
public 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 Optional<ObjectiveContext> context()
Objective
public TrafficSelector meta()
ForwardingObjective
meta
in interface ForwardingObjective
public static DefaultForwardingObjective.Builder builder()
public static DefaultForwardingObjective.Builder builder(ForwardingObjective fwd)
fwd
- base fwdpublic DefaultForwardingObjective.Builder copy()
ForwardingObjective
copy
in interface ForwardingObjective
copy
in interface Objective