Interface PolicerEntry
-
- All Known Implementing Classes:
DefaultPolicer
@Beta public interface PolicerEntry
Represents a stored policer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setLife(long life)
Set the amount of time the policer has existed in seconds.void
setProcessedBytes(long bytes)
Updates the number of bytes seen by the policer.void
setProcessedPackets(long packets)
Updates the number of packets seen by this policer.void
setReferenceCount(long count)
Sets how many are using this policer.
-
-
-
Method Detail
-
setLife
void setLife(long life)
Set the amount of time the policer has existed in seconds.- Parameters:
life
- number of seconds
-
setReferenceCount
void setReferenceCount(long count)
Sets how many are using this policer.- Parameters:
count
- a reference count.
-
setProcessedPackets
void setProcessedPackets(long packets)
Updates the number of packets seen by this policer.- Parameters:
packets
- a packet count.
-
setProcessedBytes
void setProcessedBytes(long bytes)
Updates the number of bytes seen by the policer.- Parameters:
bytes
- a byte counter.
-
-