package net.i2p.router;
/*
 * free (adj.): unencumbered; not under the control of others
 * Written by jrandom in 2003 and released into the public domain 
 * with no warranty of any kind, either expressed or implied.  
 * It probably won't make your computer catch on fire, or eat 
 * your children, but it might.  Use at your own risk.
 *
 */

import java.util.List;
import java.util.Set;

import net.i2p.data.Hash;

/**
 * Manage peer references and keep them up to date so that when asked for peers,
 * it can provide appropriate peers according to the criteria provided.  This 
 * includes periodically queueing up outbound messages to the peers to test them.
 *
 */
public interface PeerManagerFacade extends Service {
    public Set<Hash> getPeersByCapability(char capability);
    public int countPeersByCapability(char capability);
    public void setCapabilities(Hash peer, String caps);
    public void removeCapabilities(Hash peer);
    public Hash selectRandomByCapability(char capability);
}
