Package com.biglybt.core.networkmanager
Interface RateHandler
-
public interface RateHandler
Handler to allow external control of an entity's byte processing rate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bytesProcessed(int data_bytes, int protocol_bytes)
Notification of any bytes processed by the entity.int[]
getCurrentNumBytesAllowed()
Get the current number of bytes allowed to be processed by the entity and protocol_is_free if [1] > 0
-
-
-
Method Detail
-
getCurrentNumBytesAllowed
int[] getCurrentNumBytesAllowed()
Get the current number of bytes allowed to be processed by the entity and protocol_is_free if [1] > 0- Returns:
- number of bytes allowed
-
bytesProcessed
void bytesProcessed(int data_bytes, int protocol_bytes)
Notification of any bytes processed by the entity.- Parameters:
num_bytes_processed
-
-
-