All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bt.torrent.messaging.PeerWorker Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy