Class PiPacketOperation


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

      • metadatas

        public java.util.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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

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