public static final class PiCloneSessionEntry.Builder extends Object
Modifier and Type | Method and Description |
---|---|
PiCloneSessionEntry.Builder |
addReplica(PiPreReplica replica)
Adds the given packet replica to this clone session.
|
PiCloneSessionEntry.Builder |
addReplicas(Collection<PiPreReplica> replicas)
Adds the given packet replicas to this clone session.
|
PiCloneSessionEntry |
build()
Returns a new clone session entry.
|
PiCloneSessionEntry.Builder |
withClassOfService(int classOfService)
Sets the class of service of this clone session.
|
PiCloneSessionEntry.Builder |
withMaxPacketLengthBytes(int maxPacketLengthBytes)
Sets the maximum length in bytes of cloned packets.
|
PiCloneSessionEntry.Builder |
withSessionId(int sessionId)
Sets the identifier of this clone session.
|
public PiCloneSessionEntry.Builder withSessionId(int sessionId)
sessionId
- session IDpublic PiCloneSessionEntry.Builder addReplica(PiPreReplica replica)
replica
- packet replicapublic PiCloneSessionEntry.Builder addReplicas(Collection<PiPreReplica> replicas)
replicas
- packet replicaspublic PiCloneSessionEntry.Builder withClassOfService(int classOfService)
PiCloneSessionEntry.DEFAULT_CLASS_OF_SERVICE
will be used.classOfService
- class of service valuepublic PiCloneSessionEntry.Builder withMaxPacketLengthBytes(int maxPacketLengthBytes)
PiCloneSessionEntry.DO_NOT_TRUNCATE
will be
used.maxPacketLengthBytes
- max length in bytes of cloned packetspublic PiCloneSessionEntry build()