All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.stargate.sgv2.api.common.config.SerialConsistencyValid Maven / Gradle / Ivy

There is a newer version: 2.1.0-BETA-19
Show newest version
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[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy