Package com.bytedesk.core.annotation
Annotation Interface Idempotent
Enables server-side idempotency for write APIs.
Usage: annotate controller method (usually a create/submit endpoint).
Client should send header Idempotency-Key (or X-Request-Id) with a stable value per logical action.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhen true, missing idempotency key will be rejected.intTTL for cached result / in-flight marker.
-
Element Details
-
ttlSeconds
int ttlSecondsTTL for cached result / in-flight marker.- Default:
- 600
-
requireKey
boolean requireKeyWhen true, missing idempotency key will be rejected. Default false for backward compatibility.- Default:
- false
-