Package org.onosproject.net.packet
Class PacketEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<PacketEvent.Type,OutboundPacket>
-
- org.onosproject.net.packet.PacketEvent
-
- All Implemented Interfaces:
Event<PacketEvent.Type,OutboundPacket>
public class PacketEvent extends AbstractEvent<PacketEvent.Type,OutboundPacket>
Describes a packet event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PacketEvent.Type
Type of packet events.
-
Constructor Summary
Constructors Constructor Description PacketEvent(PacketEvent.Type type, OutboundPacket packet)
Creates an event of the given type for the specified packet.PacketEvent(PacketEvent.Type type, OutboundPacket packet, long time)
Creates an event of the given type for the specified packet at the given time.
-
-
-
Constructor Detail
-
PacketEvent
public PacketEvent(PacketEvent.Type type, OutboundPacket packet)
Creates an event of the given type for the specified packet.- Parameters:
type
- the type of the eventpacket
- the packet the event is about
-
PacketEvent
public PacketEvent(PacketEvent.Type type, OutboundPacket packet, long time)
Creates an event of the given type for the specified packet at the given time.- Parameters:
type
- the type of the eventpacket
- the packet the event is abouttime
- the time of the event
-
-