Class PiPreReplica


  • @Beta
    public final class PiPreReplica
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      PiPreReplica​(PortNumber egressPort, int instanceId)
      Returns a new PRE packet replica for the given egress port and 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 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