Class PermissiveStrategy
- java.lang.Object
-
- org.johnnei.javatorrent.torrent.algos.choking.PermissiveUploadStrategy
-
- org.johnnei.javatorrent.torrent.algos.choking.PermissiveStrategy
-
- All Implemented Interfaces:
IChokingStrategy
public class PermissiveStrategy extends PermissiveUploadStrategy
A simple choking strategy which attempt to get unchoked by everyone who has any piece we don't have and unchokes anyone who's interested in us.
-
-
Constructor Summary
Constructors Constructor Description PermissiveStrategy()
-
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)
Checks and possibly updates the choke states of the Peer.- Specified by:
updateChokingin interfaceIChokingStrategy- Overrides:
updateChokingin classPermissiveUploadStrategy- Parameters:
peer- The peer for which the states should be managed.
-
-