Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 631 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 631 Bytes

dropwizard-jest-multicast

There is not a good way to send data using jest to multiple elasticsearch databases. This project aims to fix that by overriding the JestClient class to manage multiple connections.

Usage

This is a dropwizard bundle to putting it into your project is as easy as:

private MulticastBundle bundle;

@Override
public void initialize(Bootstrap<ExampleConfiguration> bootstrap) {
    bootstrap.addBundle(
            bundle = new MulticastBundle.Builder<ExampleConfiguration>()
                .withConfiguration(ExampleConfiguration::getElasticsearch)
                .build()
    );
}