public final class DefaultPacketRequest extends java.lang.Object implements PacketRequest
Constructor and Description |
---|
DefaultPacketRequest(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId,
NodeId nodeId,
java.util.Optional<DeviceId> deviceId)
Creates a new packet request.
|
Modifier and Type | Method and Description |
---|---|
ApplicationId |
appId()
Obtains the application id.
|
java.util.Optional<DeviceId> |
deviceId()
Obtains the optional device id.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
NodeId |
nodeId()
Obtains the node id.
|
PacketPriority |
priority()
Obtains the priority.
|
TrafficSelector |
selector()
Obtains the traffic selector.
|
java.lang.String |
toString() |
public DefaultPacketRequest(TrafficSelector selector, PacketPriority priority, ApplicationId appId, NodeId nodeId, java.util.Optional<DeviceId> deviceId)
selector
- traffic selectorpriority
- intercept priorityappId
- application idnodeId
- identifier of node where request originateddeviceId
- device idpublic TrafficSelector selector()
PacketRequest
selector
in interface PacketRequest
public PacketPriority priority()
PacketRequest
priority
in interface PacketRequest
public ApplicationId appId()
PacketRequest
appId
in interface PacketRequest
public java.util.Optional<DeviceId> deviceId()
PacketRequest
deviceId
in interface PacketRequest
public NodeId nodeId()
PacketRequest
nodeId
in interface PacketRequest
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