Package org.onosproject.net.pi.runtime
Class PiPacketOperation
- java.lang.Object
- 
- org.onosproject.net.pi.runtime.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.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPiPacketOperation.BuilderBuilder of packet operations.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiPacketOperation.Builderbuilder()Returns a new builder of packet operations.ImmutableByteSequencedata()Returns the data of this packet.booleanequals(Object o)inthashCode()Collection<PiPacketMetadata>metadatas()Returns all metadatas of this packet.StringtoString()PiPacketOperationTypetype()Return the type of this packet.
 
- 
- 
- 
Method Detail- 
typepublic PiPacketOperationType type() Return the type of this packet.- Returns:
- packet type
 
 - 
datapublic ImmutableByteSequence data() Returns the data of this packet.- Returns:
- packet data
 
 - 
metadataspublic 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
 
 - 
builderpublic static PiPacketOperation.Builder builder() Returns a new builder of packet operations.- Returns:
- a new builder
 
 
- 
 
-