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

org.cassandraunit.spring.EmbeddedCassandra Maven / Gradle / Ivy

package org.cassandraunit.spring;

import org.cassandraunit.utils.EmbeddedCassandraServerHelper;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation to start an embedded Cassandra
 *
 * @author Olivier Bazoud
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
@Documented
public @interface EmbeddedCassandra {
  // cassandra configuration file
  String configuration() default EmbeddedCassandraServerHelper.DEFAULT_CASSANDRA_YML_FILE;
  String tmpDir() default EmbeddedCassandraServerHelper.DEFAULT_TMP_DIR;
  long timeout() default EmbeddedCassandraServerHelper.DEFAULT_STARTUP_TIMEOUT;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy