注释
This commit is contained in:
5
src/main/java/org/redkale/cache/Cached.java
vendored
5
src/main/java/org/redkale/cache/Cached.java
vendored
@@ -5,7 +5,6 @@ package org.redkale.cache;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -13,17 +12,15 @@ import java.util.concurrent.TimeUnit;
|
||||
import org.redkale.service.LoadMode;
|
||||
|
||||
/**
|
||||
* //TODO 待实现
|
||||
*
|
||||
* 标记在Service的缓存接口, 方法有以下限制: <br>
|
||||
* 1、方法返回类型不能是void/CompletableFuture<Void>
|
||||
* 2、方法返回类型必须可json序列化
|
||||
* 3、方法必须是protected/public
|
||||
* 4、方法不能是final
|
||||
* 4、方法不能是final/static
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@Inherited
|
||||
@Documented
|
||||
@Target(METHOD)
|
||||
@Retention(RUNTIME)
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
package org.redkale.lock;
|
||||
|
||||
/**
|
||||
* //TODO 待实现
|
||||
*
|
||||
* 锁管理器
|
||||
*
|
||||
* <p>
|
||||
|
||||
@@ -5,7 +5,6 @@ package org.redkale.lock;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import static java.lang.annotation.ElementType.METHOD;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -15,9 +14,8 @@ import org.redkale.service.LoadMode;
|
||||
* //TODO 待实现
|
||||
*
|
||||
* 标记在Service的锁接口, 方法有以下限制: <br>
|
||||
* 1、方法返回类型不能是void/CompletableFuture<Void>
|
||||
* 2、方法必须是protected/public
|
||||
* 3、方法不能是final
|
||||
* 3、方法不能是final/static
|
||||
*
|
||||
* <p>
|
||||
* 详情见: https://redkale.org
|
||||
@@ -26,7 +24,6 @@ import org.redkale.service.LoadMode;
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@Inherited
|
||||
@Documented
|
||||
@Target(METHOD)
|
||||
@Retention(RUNTIME)
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
import java.lang.annotation.Target;
|
||||
import org.redkale.service.LoadMode;
|
||||
|
||||
/**
|
||||
* {@link org.redkale.lock.Locked}注解的动态扩展版,会多一个字段信息
|
||||
@@ -25,4 +26,6 @@ import java.lang.annotation.Target;
|
||||
public @interface DynForLock {
|
||||
|
||||
String dynField();
|
||||
|
||||
LoadMode mode() default LoadMode.ANY;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import org.redkale.service.LoadMode;
|
||||
/**
|
||||
* MQ资源注解, 只能标记在Service类方法上
|
||||
* 1、方法必须是protected/public
|
||||
* 2、方法不能是final
|
||||
* 2、方法不能是final/static
|
||||
*
|
||||
* <p>
|
||||
* 详情见: https://redkale.org
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import org.redkale.service.LoadMode;
|
||||
|
||||
/**
|
||||
* 定时任务标记,只能作用于Service的无参数或者单一ScheduleEvent参数的方法上, 功能类似Spring里的Scheduled注解
|
||||
* 定时任务标记,只能作用于Service的无参数或者单一ScheduleEvent参数的菲static方法上, 功能类似Spring里的Scheduled注解
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
@@ -18,6 +18,7 @@ import org.redkale.service.LoadMode;
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
@Documented
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Scheduled {
|
||||
|
||||
Reference in New Issue
Block a user