rice.tutorial.transportlayer
Class NotEnoughBandwidthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
rice.tutorial.transportlayer.NotEnoughBandwidthException
- All Implemented Interfaces:
- Serializable
public class NotEnoughBandwidthException
- extends IOException
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NotEnoughBandwidthException
public NotEnoughBandwidthException(long bucketSize,
int attemptedToWrite)
getAmountAllowedToWrite
public long getAmountAllowedToWrite()
- Returns:
- The amount allowed to write (right now).
getAttemptedToWrite
public int getAttemptedToWrite()
- Returns:
- The amount we attempted to write.
Copyright © 2010. All Rights Reserved.