org.xnap.io
Interface BandwidthManagable

All Known Implementing Classes:
ThrottledOutputStream

public interface BandwidthManagable


Method Summary
 int getPriority()
          Returns a priority for this download.
 void setAllocated(long bytes)
          Sets the number of allocated bytes that the Managable is allowed to send.
 

Method Detail

getPriority

int getPriority()
Returns a priority for this download.

Returns:
must never return a value < 0

setAllocated

void setAllocated(long bytes)
Sets the number of allocated bytes that the Managable is allowed to send.



Copyright © 2001-2005 XNap Team. All Rights Reserved.