Class PiPreReplica


  • @Beta
    public final class PiPreReplica
    extends Object
    Representation of a packet replica used for multicast or cloning process in a protocol-independent packet replication engine.

    Each replica is uniquely identified inside a given multicast group or clone session by the pair (egress port, instance ID).

    • Constructor Detail

      • PiPreReplica

        public PiPreReplica​(PortNumber egressPort,
                            int instanceId)
        Returns a new PRE packet replica for the given egress port and instance ID.
        Parameters:
        egressPort - egress port
        instanceId - instance ID
    • Method Detail

      • egressPort

        public PortNumber egressPort()
        Returns the egress port of this replica.
        Returns:
        egress port
      • instanceId

        public int instanceId()
        Returns the instance ID of this replica.
        Returns:
        instance ID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object