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

bt.torrent.messaging.MessageProducer 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;

/**
 * Message agent, that is interested in producing messages
 *
 * @see bt.torrent.annotation.Produces
 * @since 1.0
 */
public interface MessageProducer {

    /**
     * Produce a message to the remote peer, if possible
     *
     * @since 1.0
     */
    void produce(Consumer messageConsumer, MessageContext context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy