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

plus.jdk.etcd.annotation.EtcdNode Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package plus.jdk.etcd.annotation;

import plus.jdk.etcd.common.DefaultEtcdNodePostProcessor;
import plus.jdk.etcd.common.IEtcdNodePostProcessor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EtcdNode {

    /**
     * 配置路径
     */
    String path();

    /**
     * 初始化和数据变化时触发的回调
     */
    Class processor() default DefaultEtcdNodePostProcessor.class;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy