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

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

package tanukkii.reactivezk

import akka.actor.{Actor, ActorRef}
import org.apache.zookeeper.WatchedEvent

trait WatcherCallback {
  def watchCallback(sendTo: ActorRef)(implicit sender: ActorRef = Actor.noSender): (WatchedEvent) => Unit = {
    (e: WatchedEvent) => sendTo ! ZooKeeperWatchEvent(e)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy