io.stargate.sgv2.api.common.config.SerialConsistencyValid Maven / Gradle / Ivy
package io.stargate.sgv2.api.common.config;
import static java.lang.annotation.ElementType.*;
import io.stargate.bridge.proto.QueryOuterClass;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** Annotation to validate serial consistency */
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = SerialConsistencyValidator.class)
public @interface SerialConsistencyValid {
QueryOuterClass.Consistency[] anyOf();
String message() default "must be any of {anyOf}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy