public interface BandwidthThrottler
Modifier and Type | Method and Description |
---|---|
int |
getAllowedBytes(int len)
Get the allowed number of bytes to read from or write to socket.
|
void |
setUpstreamKbps(long kbps)
Set upload max bandwidth in kilobits per seconds.
|
void setUpstreamKbps(long kbps)
kbps
- max bandwidth in kbpsint getAllowedBytes(int len)
len
- maximum number of bytes.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.