public class ThrottleState extends Object
InteractiveMethod.SET_BANDWIDTH_THROTTLE
. It contains the number of sent packets (ones inserted into the
bucket) and the number of rejected packets.Constructor and Description |
---|
ThrottleState(int inserted,
int rejected)
Initializes a new
ThrottleState . |
Modifier and Type | Method and Description |
---|---|
int |
getInsertedPacketCount()
Returns a count of how many packets have been successfully sent.
|
int |
getRejectedPacketCount()
Returns a count of how many packets have been dropped (were not sent successfully) as a result of throttling
rules.
|
public ThrottleState(int inserted, int rejected)
ThrottleState
.inserted
- A count of how many packets have been successfully sentrejected
- A count of how many packets have been dropped (were not sent successfully)public int getInsertedPacketCount()
public int getRejectedPacketCount()
Copyright © 2018. All rights reserved.