Giter VIP home page Giter VIP logo

etcd-recipes's Introduction

etcd Recipes

JitPack Build Status Codacy Badge codebeat badge codecov Coverage Status Quality Gate Status Known Vulnerabilities Kotlin Java

etcd-recipes is a Kotlin/Java/JVM client library for etcd v3, a distributed, reliable key-value store. It attempts to provide the same kind of support for etcd that Curator does for ZooKeeper.

Examples

The repo includes Java and Kotlin examples.

Usage

connectToEtcd(urls) { client ->
    client.putValue("test_key", "test_value")
    sleep(5.seconds)
    client.delete("test_key")
}

Compatability

etcd-recipes is built on top of jetcd, which works with etcd v3.

etcd-recipies is written in Kotlin, but is usable by Java and any other JVM clients.

Download

Jars are available at jitpack.io.

Gradle

# Add kotlinx and jitpack.io to repositories
repositories {
    mavenCentral()
    maven { url "https://kotlin.bintray.com/kotlinx" }
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation "com.github.pambrose.etcd-recipes:etcd-recipes:0.9.21"
}

Maven

<repositories>
    <repository>
        <id>kotlinx</id>
        <name>kotlinkx Releases</name>
        <url>https://kotlin.bintray.com/kotlinx</url>
    </repository>
    <repository>
        <id>jitpack.io</id>
        <name>jitpack.io Releases</name>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
      <groupId>com.github.pambrose.etcd-recipes</groupId>
      <artifactId>etcd-recipes</artifactId>
      <version>0.9.21</version>
    </dependency>
</dependencies>

etcd-recipes's People

Contributors

pambrose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

etcd-recipes's Issues

Update to jetcd 0.5.*

Changes in jetcd 0.5.4 are not compatible with current version.
E.g. it seems io.etcd.jetcd.Observers is missed in new jetcd.

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: io/etcd/jetcd/Observers
at io.etcd.recipes.common.LeaseUtils.keepAlive(LeaseExtensions.kt:33)
at io.etcd.recipes.common.LeaseUtils.keepAliveWith(LeaseExtensions.kt:29)
at io.etcd.recipes.common.KeepAliveUtils.putValuesWithKeepAlive-Q15Xa8I(KeepAliveExtensions.kt:67)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.