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.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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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)
boolean
canEqual(java.lang.Object that)
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.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, 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.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
-
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
-
-