Interface RateHandler
public interface RateHandler
Handler to allow external control of an entity's byte processing rate.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbytesProcessed(long data_bytes, long protocol_bytes) Notification of any bytes processed by the entity.long[]Get the current number of bytes allowed to be processed by the entity and protocol_is_free if [1] > 0
-
Method Details
-
getCurrentNumBytesAllowed
long[] 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(long data_bytes, long protocol_bytes) Notification of any bytes processed by the entity.- Parameters:
num_bytes_processed-
-