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

systems.composable.dropwizard.cassandra.network.AddressTranslatorFactory Maven / Gradle / Ivy

The newest version!
package systems.composable.dropwizard.cassandra.network;

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

/**
 * A service provider interface for creating DataStax {@link AddressTranslator}.
 * 

*

To create your own, just: *

*

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy