FileDocCategorySizeDatePackage
Unchoker.javaAPI DocAzureus 3.0.3.42050Thu Feb 09 19:42:48 GMT 2006com.aelitis.azureus.core.peermanager.unchoker

Unchoker

public interface Unchoker
Performs peer choke/unchoke calculations.

Fields Summary
Constructors Summary
Methods Summary
public voidcalculateUnchokes(int max_to_unchoke, java.util.ArrayList all_peers, boolean force_refresh)
Perform peer choke, unchoke and optimistic calculations

param
max_to_unchoke maximum number of peers allowed to be unchoked
param
all_peers list of peers to choose from
param
force_refresh force a refresh of optimistic unchokes

public java.util.ArrayListgetChokes()
Get the list of peers calculated to be choked.

return
peers to choke

public java.util.ArrayListgetImmediateUnchokes(int max_to_unchoke, java.util.ArrayList all_peers)
Get any unchokes that should be performed immediately.

param
max_to_unchoke maximum number of peers allowed to be unchoked
param
all_peers list of peers to choose from
return
peers to unchoke

public java.util.ArrayListgetUnchokes()
Get the list of peers calculated to be unchoked.

return
peers to unchoke