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

com.teambytes.inflatable.raft.cluster.protocol.ClusterProtocol.scala Maven / Gradle / Ivy

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

import com.teambytes.inflatable.raft.protocol._
import akka.actor.Address

private[cluster] trait ClusterProtocol {

  /**
   * Sent by ClusterRaftActor, to itself in order facilitate a retry to identify if unable to reach remote raft members
   */
  private[cluster] case class RaftMembersIdentifyTimedOut(address: Address, retryMoreTimes: Int)  extends Message[Internal] {
    require(retryMoreTimes >= 0, "Retry number must be positive!")

    def shouldRetry = retryMoreTimes > 0
    def forRetry = copy(retryMoreTimes = retryMoreTimes - 1)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy