fs2-zk


License

License

MIT
GroupId

GroupId

com.spinoco
ArtifactId

ArtifactId

fs2-zk_2.11
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

fs2-zk
fs2-zk
Project URL

Project URL

https://github.com/Spinoco/fs2-zk
Project Organization

Project Organization

com.spinoco
Source Code Management

Source Code Management

https://github.com/Spinoco/fs2-zk

Download fs2-zk_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.spinoco/fs2-zk_2.11/ -->
<dependency>
    <groupId>com.spinoco</groupId>
    <artifactId>fs2-zk_2.11</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.spinoco/fs2-zk_2.11/
implementation 'com.spinoco:fs2-zk_2.11:0.4.0'
// https://jarcasting.com/artifacts/com.spinoco/fs2-zk_2.11/
implementation ("com.spinoco:fs2-zk_2.11:0.4.0")
'com.spinoco:fs2-zk_2.11:jar:0.4.0'
<dependency org="com.spinoco" name="fs2-zk_2.11" rev="0.4.0">
  <artifact name="fs2-zk_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.spinoco', module='fs2-zk_2.11', version='0.4.0')
)
libraryDependencies += "com.spinoco" % "fs2-zk_2.11" % "0.4.0"
[com.spinoco/fs2-zk_2.11 "0.4.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
co.fs2 : fs2-core_2.11 jar 1.0.0
co.fs2 : fs2-io_2.11 jar 1.0.0
org.apache.zookeeper : zookeeper jar 3.4.10

Project Modules

There are no modules declared in this project.

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

com.spinoco

Spinoco

Spinoco develops programs in Scala, cats, fs2 and scala-js

Versions

Version
0.4.0
0.4.0-M2
0.2.0
0.1.6
0.1.5
0.1.1