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

systems.composable.dropwizard.cassandra.speculativeexecution.SpeculativeExecutionPolicyFactory Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package systems.composable.dropwizard.cassandra.speculativeexecution;

import com.datastax.driver.core.policies.SpeculativeExecutionPolicy;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.dropwizard.jackson.Discoverable;

/**
 * A service provider interface for creating DataStax {@link SpeculativeExecutionPolicy speculative execution policies}.
 * 

* To create your own, just: *

    *
  1. Create a class which implements {@link SpeculativeExecutionPolicyFactory}.
  2. *
  3. Annotate it with {@code @JsonTypeName} and give it a unique type name.
  4. *
  5. Add a {@code META-INF/services/systems.composable.dropwizard.cassandra.speculativeexecution.SpeculativeExecutionPolicyFactory} * file with your implementation's full class name to the class path.
  6. *
* * @see ConstantSpeculativeExecutionPolicyFactory * @see NoSpeculativeExecutionPolicyFactory */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type") public interface SpeculativeExecutionPolicyFactory extends Discoverable { SpeculativeExecutionPolicy build(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy