Class PiCloneSessionEntry

  • All Implemented Interfaces:
    PiEntity, PiPreEntry

    @Beta
    public final class PiCloneSessionEntry
    extends java.lang.Object
    implements PiPreEntry
    Representation of a clone session entry of a protocol-independent packet replication engine (PRE).
    • Method Detail

      • sessionId

        public int sessionId()
        Returns the identifier of this clone session, unique in the scope of a PRE instance.
        Returns:
        clone session ID
      • replicas

        public java.util.Set<PiPreReplica> replicas()
        Returns the packet replicas provided by this clone session.
        Returns:
        packet replicas
      • classOfService

        public int classOfService()
        Returns the class of service associated to the replicas produced by this clone session.
        Returns:
        class of service
      • maxPacketLengthBytes

        public int maxPacketLengthBytes()
        Returns the maximum length in bytes of cloned packets. If a larger packet is cloned, then the PRE is expected to truncate clones to the given size. 0 means that no truncation on the clone(s) will be performed.
        Returns:
        maximum length in bytes of clones packets
      • piEntityType

        public PiEntityType piEntityType()
        Description copied from interface: PiEntity
        Returns the type of this entity.
        Specified by:
        piEntityType in interface PiEntity
        Returns:
        entity type
      • 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