bt.module.MessageHandlers 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.module;
import com.google.inject.BindingAnnotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotates individual message handlers,
* that work with core BitTorrent message types.
*
* Each message type is assigned a unique numeric ID,
* thus annotated value should be a
* {@link java.util.Map}<{@link Integer}, {@link bt.protocol.handler.MessageHandler}>
.
*
* @since 1.0
*/
@Target({ ElementType.PARAMETER, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@BindingAnnotation
public @interface MessageHandlers {}