Class DefaultPacketRequest

  • All Implemented Interfaces:
    PacketRequest

    public final class DefaultPacketRequest
    extends java.lang.Object
    implements PacketRequest
    Default implementation of a packet request.
    • Constructor Detail

      • DefaultPacketRequest

        public DefaultPacketRequest​(TrafficSelector selector,
                                    PacketPriority priority,
                                    ApplicationId appId,
                                    NodeId nodeId,
                                    java.util.Optional<DeviceId> deviceId)
        Creates a new packet request.
        Parameters:
        selector - traffic selector
        priority - intercept priority
        appId - application id
        nodeId - identifier of node where request originated
        deviceId - device id
    • Method Detail

      • deviceId

        public java.util.Optional<DeviceId> deviceId()
        Description copied from interface: PacketRequest
        Obtains the optional device id.
        Specified by:
        deviceId in interface PacketRequest
        Returns:
        an optional containing a device id
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object