public final class DefaultOutboundPacket extends java.lang.Object implements OutboundPacket
| Constructor and Description |
|---|
DefaultOutboundPacket(DeviceId sendThrough,
TrafficTreatment treatment,
java.nio.ByteBuffer data)
Creates an immutable outbound packet.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
data()
Returns immutable view of the raw data to be sent.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
DeviceId |
sendThrough()
Returns the identity of a device through which this packet should be
sent.
|
java.lang.String |
toString() |
TrafficTreatment |
treatment()
Returns how the outbound packet should be treated.
|
public DefaultOutboundPacket(DeviceId sendThrough, TrafficTreatment treatment, java.nio.ByteBuffer data)
sendThrough - identifier through which to send the packettreatment - list of packet treatmentsdata - raw packet datapublic DeviceId sendThrough()
OutboundPacketsendThrough in interface OutboundPacketpublic TrafficTreatment treatment()
OutboundPackettreatment in interface OutboundPacketpublic java.nio.ByteBuffer data()
OutboundPacketdata in interface OutboundPacketpublic 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.Object