Class PermissiveUploadStrategy
- java.lang.Object
-
- org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
-
- All Implemented Interfaces:
IChokingStrategy
- Direct Known Subclasses:
PermissiveStrategy
public class PermissiveUploadStrategy extends Object implements IChokingStrategy
A choking strategy which doesn't care about us downloading and allows everyone to download from us. This type of strategy is advised forPhaseSeedas it reduces overhead on checking choke states for downloading.- See Also:
PermissiveStrategy
-
-
Constructor Summary
Constructors Constructor Description PermissiveUploadStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupdateChoking(Peer peer)Checks and possibly updates the choke states of the Peer.
-
-
-
Method Detail
-
updateChoking
public void updateChoking(Peer peer)
Description copied from interface:IChokingStrategyChecks and possibly updates the choke states of the Peer.- Specified by:
updateChokingin interfaceIChokingStrategy- Parameters:
peer- The peer for which the states should be managed.
-
-