Package org.onosproject.net.pi.runtime
Class PiMulticastGroupEntry.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMulticastGroupEntry.Builder
-
- Enclosing class:
- PiMulticastGroupEntry
public static final class PiMulticastGroupEntry.Builder extends java.lang.Object
Builder of PI multicast group entries.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiMulticastGroupEntry.Builder
addReplica(PiPreReplica replica)
Adds the given packet replica to this multicast group.PiMulticastGroupEntry.Builder
addReplicas(java.util.Collection<PiPreReplica> replicas)
Adds the given packet replicas to this multicast group.PiMulticastGroupEntry
build()
Returns a new multicast group entry.PiMulticastGroupEntry.Builder
withGroupId(int groupId)
Sets the identifier of this multicast group.
-
-
-
Method Detail
-
withGroupId
public PiMulticastGroupEntry.Builder withGroupId(int groupId)
Sets the identifier of this multicast group.- Parameters:
groupId
- group ID- Returns:
- this
-
addReplica
public PiMulticastGroupEntry.Builder addReplica(PiPreReplica replica)
Adds the given packet replica to this multicast group.- Parameters:
replica
- packet replica- 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
-
-