This commit is contained in:
redkale
2023-12-26 09:47:07 +08:00
parent c57a32143b
commit cac8da9b4d
6 changed files with 10 additions and 10 deletions

View File

@@ -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&#60;Void&#62;
* 2、方法返回类型必须可json序列化
* 3、方法必须是protected/public
* 4、方法不能是final
* 4、方法不能是final/static
*
* @since 2.8.0
*/
@Inherited
@Documented
@Target(METHOD)
@Retention(RUNTIME)

View File

@@ -4,6 +4,8 @@
package org.redkale.lock;
/**
* //TODO 待实现
*
* 锁管理器
*
* <p>

View File

@@ -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&#60;Void&#62;
* 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)

View File

@@ -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;
}

View File

@@ -14,7 +14,7 @@ import org.redkale.service.LoadMode;
/**
* MQ资源注解, 只能标记在Service类方法上
* 1、方法必须是protected/public
* 2、方法不能是final
* 2、方法不能是final/static
*
* <p>
* 详情见: https://redkale.org

View File

@@ -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 {