@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface IdempotencyKey
@Idempotent
private MyObject subMethod(String param1, @IdempotencyKey String param2) {
// ...
return something;
}
Note: This annotation is not needed when the method only has one parameter.Copyright © 2023. All rights reserved.