Package akka.cluster.routing
Class ClusterRouterGroupSettings
- java.lang.Object
-
- akka.cluster.routing.ClusterRouterGroupSettings
-
- All Implemented Interfaces:
ClusterRouterSettingsBase
,java.io.Serializable
,scala.Equals
,scala.Product
public final class ClusterRouterGroupSettings extends java.lang.Object implements scala.Product, java.io.Serializable, ClusterRouterSettingsBase
totalInstances
of cluster router must be > 0- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterRouterGroupSettings(int totalInstances, java.lang.Iterable<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.lang.String useRole)
Deprecated.useRole has been replaced with useRoles.ClusterRouterGroupSettings(int totalInstances, java.lang.Iterable<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.util.Set<java.lang.String> useRoles)
Java APIClusterRouterGroupSettings(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
ClusterRouterGroupSettings(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.useRole has been replaced with useRoles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allowLocalRoutees()
static ClusterRouterGroupSettings
apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.lang.String... useRoles)
static ClusterRouterGroupSettings
apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Seq<java.lang.String> useRoles)
static ClusterRouterGroupSettings
apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
static ClusterRouterGroupSettings
apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.useRole has been replaced with useRoles.boolean
canEqual(java.lang.Object that)
ClusterRouterGroupSettings
copy(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.Use constructor with useRoles instead.int
copy$default$1()
scala.collection.immutable.Seq<java.lang.String>
copy$default$2()
boolean
copy$default$3()
scala.Option<java.lang.String>
copy$default$4()
boolean
equals(java.lang.Object obj)
static ClusterRouterGroupSettings
fromConfig(com.typesafe.config.Config config)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int n)
scala.collection.immutable.Seq<java.lang.String>
routeesPaths()
java.lang.String
toString()
int
totalInstances()
static scala.Option<scala.Tuple4<java.lang.Object,scala.collection.immutable.Seq<java.lang.String>,java.lang.Object,scala.collection.immutable.Set<java.lang.String>>>
unapply(ClusterRouterGroupSettings settings)
scala.Option<java.lang.String>
useRole()
Deprecated.useRole has been replaced with useRoles.scala.collection.immutable.Set<java.lang.String>
useRoles()
ClusterRouterGroupSettings
withUseRoles(java.lang.String... useRoles)
Java APIClusterRouterGroupSettings
withUseRoles(java.util.Set<java.lang.String> useRoles)
Java APIClusterRouterGroupSettings
withUseRoles(scala.collection.immutable.Seq<java.lang.String> useRoles)
ClusterRouterGroupSettings
withUseRoles(scala.collection.immutable.Set<java.lang.String> useRoles)
-
-
-
Constructor Detail
-
ClusterRouterGroupSettings
public ClusterRouterGroupSettings(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
-
ClusterRouterGroupSettings
public ClusterRouterGroupSettings(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.useRole has been replaced with useRoles. Since 2.5.4.
-
ClusterRouterGroupSettings
public ClusterRouterGroupSettings(int totalInstances, java.lang.Iterable<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.lang.String useRole)
Deprecated.useRole has been replaced with useRoles. Since 2.5.4.Java API
-
ClusterRouterGroupSettings
public ClusterRouterGroupSettings(int totalInstances, java.lang.Iterable<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.util.Set<java.lang.String> useRoles)
Java API
-
-
Method Detail
-
apply
public static ClusterRouterGroupSettings apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, java.lang.String... useRoles)
-
apply
public static ClusterRouterGroupSettings apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.useRole has been replaced with useRoles. Since 2.5.4.
-
apply
public static ClusterRouterGroupSettings apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Seq<java.lang.String> useRoles)
-
fromConfig
public static ClusterRouterGroupSettings fromConfig(com.typesafe.config.Config config)
-
apply
public static ClusterRouterGroupSettings apply(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
-
unapply
public static scala.Option<scala.Tuple4<java.lang.Object,scala.collection.immutable.Seq<java.lang.String>,java.lang.Object,scala.collection.immutable.Set<java.lang.String>>> unapply(ClusterRouterGroupSettings settings)
-
withUseRoles
public ClusterRouterGroupSettings withUseRoles(java.lang.String... useRoles)
Java API
-
totalInstances
public int totalInstances()
- Specified by:
totalInstances
in interfaceClusterRouterSettingsBase
-
routeesPaths
public scala.collection.immutable.Seq<java.lang.String> routeesPaths()
-
allowLocalRoutees
public boolean allowLocalRoutees()
- Specified by:
allowLocalRoutees
in interfaceClusterRouterSettingsBase
-
useRoles
public scala.collection.immutable.Set<java.lang.String> useRoles()
- Specified by:
useRoles
in interfaceClusterRouterSettingsBase
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
canEqual
public boolean canEqual(java.lang.Object that)
- Specified by:
canEqual
in interfacescala.Equals
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElement
in interfacescala.Product
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
useRole
public scala.Option<java.lang.String> useRole()
Deprecated.useRole has been replaced with useRoles. Since 2.5.4.
-
copy
public ClusterRouterGroupSettings copy(int totalInstances, scala.collection.immutable.Seq<java.lang.String> routeesPaths, boolean allowLocalRoutees, scala.Option<java.lang.String> useRole)
Deprecated.Use constructor with useRoles instead. Since 2.5.4.
-
copy$default$1
public int copy$default$1()
-
copy$default$2
public scala.collection.immutable.Seq<java.lang.String> copy$default$2()
-
copy$default$3
public boolean copy$default$3()
-
copy$default$4
public scala.Option<java.lang.String> copy$default$4()
-
withUseRoles
public ClusterRouterGroupSettings withUseRoles(scala.collection.immutable.Set<java.lang.String> useRoles)
-
withUseRoles
public ClusterRouterGroupSettings withUseRoles(scala.collection.immutable.Seq<java.lang.String> useRoles)
-
withUseRoles
public ClusterRouterGroupSettings withUseRoles(java.util.Set<java.lang.String> useRoles)
Java API
-
-