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

com.teambytes.inflatable.InflatableActor.scala Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.teambytes.inflatable

import akka.actor.ActorLogging
import com.teambytes.inflatable.raft.RaftActor
import org.slf4j.LoggerFactory

private[inflatable] class InflatableActor(handler: InflatableLeader) extends RaftActor with ActorLogging {
  import protocol._

  private[inflatable] override type Command = Cmnd

  private[inflatable] override def apply = {
    case _ => // Do nothing, we only care about leader election
  }

  override def onIsLeader() = handler.onIsLeader()


  override def onIsNotLeader() = handler.onIsNotLeader()

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy