Dropwizard Riak

Riak support in Dropwizard

License

License

Categories

Categories

DropWizard Container Microservices
GroupId

GroupId

com.smoketurner.dropwizard
ArtifactId

ArtifactId

dropwizard-riak
Last Version

Last Version

1.3.9-1
Release Date

Release Date

Type

Type

jar
Description

Description

Dropwizard Riak
Riak support in Dropwizard
Project URL

Project URL

https://github.com/smoketurner/dropwizard-riak
Source Code Management

Source Code Management

https://github.com/smoketurner/dropwizard-riak

Download dropwizard-riak

How to add to project

<!-- https://jarcasting.com/artifacts/com.smoketurner.dropwizard/dropwizard-riak/ -->
<dependency>
    <groupId>com.smoketurner.dropwizard</groupId>
    <artifactId>dropwizard-riak</artifactId>
    <version>1.3.9-1</version>
</dependency>
// https://jarcasting.com/artifacts/com.smoketurner.dropwizard/dropwizard-riak/
implementation 'com.smoketurner.dropwizard:dropwizard-riak:1.3.9-1'
// https://jarcasting.com/artifacts/com.smoketurner.dropwizard/dropwizard-riak/
implementation ("com.smoketurner.dropwizard:dropwizard-riak:1.3.9-1")
'com.smoketurner.dropwizard:dropwizard-riak:jar:1.3.9-1'
<dependency org="com.smoketurner.dropwizard" name="dropwizard-riak" rev="1.3.9-1">
  <artifact name="dropwizard-riak" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.smoketurner.dropwizard', module='dropwizard-riak', version='1.3.9-1')
)
libraryDependencies += "com.smoketurner.dropwizard" % "dropwizard-riak" % "1.3.9-1"
[com.smoketurner.dropwizard/dropwizard-riak "1.3.9-1"]

Dependencies

compile (2)

Group / Artifact Type Version
io.dropwizard : dropwizard-core jar
com.basho.riak : riak-client jar 2.1.1

test (5)

Group / Artifact Type Version
io.dropwizard : dropwizard-testing jar
org.assertj : assertj-core jar 3.12.0
org.mockito : mockito-core jar 2.24.5
org.openjdk.jmh : jmh-core jar 1.21
org.openjdk.jmh : jmh-generator-annprocess jar 1.21

Project Modules

There are no modules declared in this project.

Dropwizard Riak

Build Status Maven Central GitHub license Become a Patron

A bundle for accessing Riak in Dropwizard applications using riak-java-client.

Usage

Within your Configuration class, add the following:

@Valid
@NotNull
private final RiakFactory riak = new RiakFactory();

@JsonProperty
public RiakFactory getRiakFactory() {
    return riak;
}

Then with your Application class, you can access a RiakClient by doing the following:

@Override
public void initialize(Bootstrap<MyConfiguration> bootstrap) {
    bootstrap.addBundle(new RiakBundle<MyConfiguration>() {
        @Override
        public RiakFactory getRiakFactory(MyConfiguration configuration) {
            return configuration.getRiakFactory();
        }
    });
}

@Override
public void run(MyConfiguration configuration, Environment environment) throws Exception {
    RiakClient client = configuration.getRiakFactory().build();
}

Maven Artifacts

This project is available on Maven Central. To add it to your project simply add the following dependencies to your pom.xml:

<dependency>
    <groupId>com.smoketurner.dropwizard</groupId>
    <artifactId>dropwizard-riak</artifactId>
    <version>1.3.7-1</version>
</dependency>

Support

Please file bug reports and feature requests in GitHub issues.

License

Copyright (c) 2018 Smoke Turner, LLC

This library is licensed under the Apache License, Version 2.0.

See http://www.apache.org/licenses/LICENSE-2.0.html or the LICENSE file in this repository for the full license text.

com.smoketurner.dropwizard

Smoke Turner, LLC

Versions

Version
1.3.9-1
1.3.8-1
1.3.7-1
1.3.5-3
1.3.5-2
1.3.5-1
1.3.0-1
1.2.3-2
1.2.3-1
1.2.2-1
1.2.0-1
1.1.0-1
1.0.6-1
1.0.5-4
1.0.5-3
1.0.5-2
1.0.5-1
1.0.3-1
1.0.2-1
1.0.1-1
1.0.0-3
1.0.0-2
1.0.0-1
1.0.0-rc4-1
0.9.2-2
0.9.2-1