Class PiPacketOperation


  • @Beta
    public final class PiPacketOperation
    extends Object
    Instance of a packet I/O operation that includes the packet body (frame) and its metadata, for a protocol-independent pipeline.
    • Method Detail

      • data

        public org.onlab.util.ImmutableByteSequence data()
        Returns the data of this packet.
        Returns:
        packet data
      • metadatas

        public Collection<PiPacketMetadata> metadatas()
        Returns all metadatas of this packet. Returns an empty collection if the packet doesn't have any metadata.
        Returns:
        collection of metadatas
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • builder

        public static PiPacketOperation.Builder builder()
        Returns a new builder of packet operations.
        Returns:
        a new builder