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