Class PiMulticastGroupEntry.Builder

  • Enclosing class:
    PiMulticastGroupEntry

    public static final class PiMulticastGroupEntry.Builder
    extends java.lang.Object
    Builder of PI multicast group entries.
    • Method Detail

      • withGroupId

        public PiMulticastGroupEntry.Builder withGroupId​(int groupId)
        Sets the identifier of this multicast group.
        Parameters:
        groupId - group ID
        Returns:
        this
      • addReplicas

        public PiMulticastGroupEntry.Builder addReplicas​(java.util.Collection<PiPreReplica> replicas)
        Adds the given packet replicas to this multicast group.
        Parameters:
        replicas - packet replicas
        Returns:
        this
      • build

        public PiMulticastGroupEntry build()
        Returns a new multicast group entry.
        Returns:
        multicast group entry