Annotation Debounce
-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Retention(value = RetentionPolicy.RUNTIME)@Target(value = ElementType.METHOD) public @interface Debounce
Execute first and debounce later, the same session can have only one executing call in the debouncing time.
- Since:
2022-05-29
trydofor
-
-
Method Summary
Modifier and Type Method Description abstract booleanreuse()Whether to wait and reuse the previous request result or return it directly. abstract longwaiting()Interval of debounce waiting in ms abstract booleansession()Whether the combination key contains the sessionId abstract booleanmethod()Whether the combination key contains method abstract booleanquery()Whether the combination key contains querystring abstract Array<String>header()Header names contained in the combination key abstract booleanbody()Whether the combination key contains the md5sum or length of the body. -
-
Method Detail
-
reuse
abstract boolean reuse()
Whether to wait and reuse the previous request result or return it directly.
-
waiting
abstract long waiting()
Interval of debounce waiting in ms
-
session
abstract boolean session()
Whether the combination key contains the sessionId
-
method
abstract boolean method()
Whether the combination key contains method
-
query
abstract boolean query()
Whether the combination key contains querystring
-
body
abstract boolean body()
Whether the combination key contains the md5sum or length of the body. If request support wings reuse stream, then use md5, otherwise take length
-
-
-
-