FileDocCategorySizeDatePackage
RateControlledEntity.javaAPI DocAzureus 3.0.3.42190Thu Dec 14 18:56:56 GMT 2006com.aelitis.azureus.core.networkmanager.impl

RateControlledEntity

public interface RateControlledEntity
Interface designation for rate-limited entities controlled by a handler.

Fields Summary
public static final int
PRIORITY_NORMAL
Uses fair round-robin scheduling of processing ops.
public static final int
PRIORITY_HIGH
Guaranteed scheduling of processing ops, with preference over normal-priority entities.
Constructors Summary
Methods Summary
public booleancanProcess(com.aelitis.azureus.core.networkmanager.EventWaiter waiter)
Is ready for a processing op.

return
true if it can process >0 bytes, false if not ready

public booleandoProcessing(com.aelitis.azureus.core.networkmanager.EventWaiter waiter)
Attempt to do a processing operation.

return
true if >0 bytes were processed (success), false if 0 bytes were processed (failure)

public longgetBytesReadyToWrite()
stats functions

return

public intgetConnectionCount()

public intgetPriority()
Get this entity's priority level.

return
priority

public intgetReadyConnectionCount(com.aelitis.azureus.core.networkmanager.EventWaiter waiter)

public java.lang.StringgetString()