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

bt.torrent.annotation.Produces Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy