All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tanukkii.reactivezk.WatcherConversion.scala Maven / Gradle / Ivy

The newest version!
package tanukkii.reactivezk

import org.apache.zookeeper.{Watcher, WatchedEvent}

trait WatcherConversion {
  implicit def toWatcher(f: WatchedEvent => Unit): Watcher = new Watcher {
    def process(event: WatchedEvent): Unit = f(event)
  }
}

object WatcherConversion extends WatcherConversion




© 2015 - 2024 Weber Informatics LLC | Privacy Policy