Skip to content
Zookeeper bindings for fs2
Branch: series/0.4
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
project
src
.gitignore
.travis.yml
CHANGES.md
LICENSE
README.md
build.sbt
version.sbt

README.md

Apache Zookeeper bindings for fs2

Simple, yet powerful fs2 bindings for Apache Zookeeper.

Build Status Gitter Chat

Overview

Library reuses Zookeeper client, and wraps fs2 around it allowing some very simple distributed primitives.

SBT

Add this to your sbt build file :

libraryDependencies += "com.spinoco" %% "fs2-zk" % "0.4.0" 

Dependencies

Library does not have other dependencies than fs2 and zookeeper client itself:

Changes

version scala fs2 zookeeper
0.4.0 2.11, 2.12 1.0.0 3.4.10
0.2.0 2.11, 2.12 0.10.0 3.4.10
0.1.6 2.11, 2.12 0.9.7 3.4.10

Simple usage

import spinoco.fs2.zk._

// monitor all children of given node 'node1' 
// by discrete stream of changes 
client("yourZkConnectString") flatMap { zkc =>  
   clientTo(zks) flatMap { zkc => zkc.childrenOf(node1) } 
}

More examples you may found in Tests here

You can’t perform that action at this time.