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

com.teambytes.inflatable.raft.cluster.ClusterRaftGrouping.scala Maven / Gradle / Ivy

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

import akka.actor.{RootActorPath, ActorPath, Address}

private[inflatable] trait ClusterRaftGrouping {

  /**
   * ActorPath where to look on remote members for raft actors, when a new node joins the cluster.
   *
   * Defaults to: `RootActorPath(nodeAddress) / "user" / "raft-member-*"`
   */
  def raftMembersPath(nodeAddress: Address): ActorPath = RootActorPath(nodeAddress) / "user" / "raft-member-*"

  /**
   * Only nodes with this role will participate in this raft cluster.
   *
   * Detaults to `"raft"`, but you can override it in order to support multiple raft clusters in the same actor system
   */
  def raftGroupRole: String = "raft"

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy