org.stuartgunter.dropwizard.cassandra.speculativeexecution.SpeculativeExecutionPolicyFactory Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of dropwizard-cassandra Show documentation
                Show all versions of dropwizard-cassandra Show documentation
Dropwizard Bundle for Cassandra
                
             The newest version!
        
        package org.stuartgunter.dropwizard.cassandra.speculativeexecution;
import com.datastax.driver.core.policies.SpeculativeExecutionPolicy;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
 * A service provider interface for creating DataStax {@link SpeculativeExecutionPolicy speculative execution policies}.
 * 
 * To create your own, just:
 * 
 *     - Create a class which implements {@link SpeculativeExecutionPolicyFactory}.
 
 *     - Annotate it with {@code @JsonTypeName} and give it a unique type name.
 
 *     - Add a {@code META-INF/services/org.stuartgunter.dropwizard.cassandra.speculativeexecution.SpeculativeExecutionPolicyFactory}
 *     file with your implementation's full class name to the class path.
 
 * 
 *
 * @see ConstantSpeculativeExecutionPolicyFactory
 * @see NoSpeculativeExecutionPolicyFactory
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
public interface SpeculativeExecutionPolicyFactory {
    SpeculativeExecutionPolicy build();
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy