public class BandwidthThrottle extends Object
BandwidthThrottle represents a throttle to be used by the Interactive service when sending messages to
the client.GameClient.setBandwidthThrottle(Map)| Constructor and Description |
|---|
BandwidthThrottle(int capacity,
int drainRate)
Initializes a new
BandwidthThrottle. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity()
Returns the total bucket capacity.
|
int |
getDrainRate()
Returns the drain rate (in bytes per second) for the bucket.
|
public BandwidthThrottle(int capacity,
int drainRate)
BandwidthThrottle.capacity - The total bucket capacity (in bytes)drainRate - The drain rate (in bytes per second) for the bucketpublic int getCapacity()
public int getDrainRate()
Copyright © 2018. All rights reserved.