Class RateControlledMultipleEntity
java.lang.Object
com.biglybt.core.networkmanager.impl.RateControlledMultipleEntity
- All Implemented Interfaces:
ControllerAllocationManagement, RateControlledEntity
- Direct Known Subclasses:
MultiPeerDownloader2, MultiPeerUploader
-
Field Summary
Fields inherited from interface ControllerAllocationManagement
UNALLOCATED_PARTITIONFields inherited from interface RateControlledEntity
PRIORITY_HIGH, PRIORITY_NORMAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactiveReadControllerRelease(boolean added) voidactiveWriteControllerRelease(boolean added) booleanisReadControllerActive(int partition) booleanisWriteControllerActive(int partition) voidvoidsetTargetReadControllerPartition(int partition) voidsetTargetWriteControllerPartition(int partition) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RateControlledEntity
canProcess, doProcessing, getBytesReadyToWrite, getConnectionCount, getPartitionID, getPriority, getPriorityBoost, getRateHandler, getReadyConnectionCount, getString
-
Constructor Details
-
RateControlledMultipleEntity
public RateControlledMultipleEntity()
-
-
Method Details
-
isReadControllerActive
public boolean isReadControllerActive(int partition) - Specified by:
isReadControllerActivein interfaceControllerAllocationManagement
-
setReadControllerInactive
public void setReadControllerInactive()- Specified by:
setReadControllerInactivein interfaceControllerAllocationManagement
-
setTargetReadControllerPartition
public void setTargetReadControllerPartition(int partition) - Specified by:
setTargetReadControllerPartitionin interfaceControllerAllocationManagement
-
activeReadControllerRelease
public void activeReadControllerRelease(boolean added) - Specified by:
activeReadControllerReleasein interfaceControllerAllocationManagement
-
isWriteControllerActive
public boolean isWriteControllerActive(int partition) - Specified by:
isWriteControllerActivein interfaceControllerAllocationManagement
-
setWriteControllerInactive
public void setWriteControllerInactive()- Specified by:
setWriteControllerInactivein interfaceControllerAllocationManagement
-
setTargetWriteControllerPartition
public void setTargetWriteControllerPartition(int partition) - Specified by:
setTargetWriteControllerPartitionin interfaceControllerAllocationManagement
-
activeWriteControllerRelease
public void activeWriteControllerRelease(boolean added) - Specified by:
activeWriteControllerReleasein interfaceControllerAllocationManagement
-