bt.torrent.messaging.PeerWorker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bt-core Show documentation
Show all versions of bt-core Show documentation
BitTorrent Client Library (Core)
package bt.torrent.messaging;
import bt.protocol.Message;
import java.util.function.Consumer;
import java.util.function.Supplier;
/**
* Instances of this class are responsible for providing a messaging interface
* with one particular peer within a torrent processing session.
*
* @since 1.0
*/
public interface PeerWorker extends Consumer, Supplier {
/**
* @return Current state of the connection
* @since 1.0
*/
ConnectionState getConnectionState();
}