bt.torrent.messaging.MessageRouter 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;
public interface MessageRouter {
void consume(Message message, MessageContext context);
void produce(Consumer messageConsumer, MessageContext context);
void registerMessagingAgent(Object agent);
void unregisterMessagingAgent(Object agent);
}