https://github.com/smoketurner/dropwizard-riak
Dropwizard Riak Support
https://github.com/smoketurner/dropwizard-riak
dropwizard dropwizard-riak java riak
Last synced: 5 months ago
JSON representation
Dropwizard Riak Support
- Host: GitHub
- URL: https://github.com/smoketurner/dropwizard-riak
- Owner: smoketurner
- License: apache-2.0
- Archived: true
- Created: 2016-04-01T21:31:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-29T12:20:24.000Z (over 5 years ago)
- Last Synced: 2024-06-21T18:09:18.324Z (10 months ago)
- Topics: dropwizard, dropwizard-riak, java, riak
- Language: Java
- Homepage:
- Size: 1.05 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-dropwizard - dropwizard-riak - Dropwizard support for Riak (Open Source / Data Stores)
README
Dropwizard Riak
===============
[](https://travis-ci.org/smoketurner/dropwizard-riak)
[](https://maven-badges.herokuapp.com/maven-central/com.smoketurner.dropwizard/dropwizard-riak/)
[](https://github.com/smoketurner/dropwizard-riak/tree/master)
[](https://www.patreon.com/bePatron?u=9567343)A bundle for accessing [Riak](http://basho.com/products/riak-kv/) in Dropwizard applications using [riak-java-client](https://github.com/basho/riak-java-client).
Usage
-----Within your `Configuration` class, add the following:
```java
@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:
```java
@Override
public void initialize(Bootstrap bootstrap) {
bootstrap.addBundle(new RiakBundle() {
@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`:
```xml
com.smoketurner.dropwizard
dropwizard-riak
1.3.7-1```
Support
-------Please file bug reports and feature requests in [GitHub issues](https://github.com/smoketurner/dropwizard-riak/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.