package com.openthinks.libs.utilities.handler.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Documented
@Retention(RUNTIME)
@Target(FIELD)
/**
 * ClassName: MappedShort <br>
 * Function: 标注最小业务处理单元,key为short. <br>
 * Reason: 通过该注解进行扫描和识别 Handler. <br>
 * date: Sep 18, 2018 4:24:15 PM <br>
 * 
 * @since JDK 1.8
 */
public @interface MappedShort {
  public static final short NULL = Short.MIN_VALUE;

  /**
   * 绑定key值
   * @return short key
   */
  short value();

}
