bt.torrent.annotation.Produces 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.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotates messaging agents, that act as message producers.
*
* Both the annotated method and the containing class must be public and have one of the following lists of parameters:
*
* ({@link java.util.function.Consumer}<{@link bt.protocol.Message}> consumer,
* {@link bt.torrent.messaging.MessageContext} context)
* ({@link java.util.function.Consumer}<{@link bt.protocol.Message}> consumer)
*
*
* @since 1.0
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Produces {}