@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=DurationMax.List.class) @ReportAsSingleViolation @Incubating public @interface DurationMax
Duration
element must be shorter than or equal to the one constructed as a sum of
nanos()
, millis()
, seconds()
,
minutes()
, hours()
, days()
.Modifier and Type | Optional Element and Description |
---|---|
long |
days |
Class<?>[] |
groups |
long |
hours |
boolean |
inclusive
Specifies whether the specified maximum is inclusive or exclusive.
|
String |
message |
long |
millis |
long |
minutes |
long |
nanos |
Class<? extends Payload>[] |
payload |
long |
seconds |
Copyright © 2021 JBoss by Red Hat. All rights reserved.