Package akka.cluster.routing
Class ClusterRouterPoolSettings
- java.lang.Object
-
- akka.cluster.routing.ClusterRouterPoolSettings
-
- All Implemented Interfaces:
ClusterRouterSettingsBase
,java.io.Serializable
,scala.Equals
,scala.Product
public final class ClusterRouterPoolSettings extends java.lang.Object implements scala.Product, java.io.Serializable, ClusterRouterSettingsBase
totalInstances
of cluster router must be > 0maxInstancesPerNode
of cluster router must be > 0maxInstancesPerNode
of cluster router must be 1 when routeesPath is defined- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, java.util.Set<java.lang.String> useRoles)
Java APIClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, 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 ClusterRouterPoolSettings
apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, java.lang.String... useRoles)
static ClusterRouterPoolSettings
apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<java.lang.String> useRoles)
static ClusterRouterPoolSettings
apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
boolean
canEqual(java.lang.Object that)
boolean
equals(java.lang.Object obj)
static ClusterRouterPoolSettings
fromConfig(com.typesafe.config.Config config)
int
hashCode()
int
maxInstancesPerNode()
int
productArity()
java.lang.Object
productElement(int n)
java.lang.String
toString()
int
totalInstances()
static scala.Option<scala.Tuple4<java.lang.Object,java.lang.Object,java.lang.Object,scala.collection.immutable.Set<java.lang.String>>>
unapply(ClusterRouterPoolSettings settings)
scala.collection.immutable.Set<java.lang.String>
useRoles()
ClusterRouterPoolSettings
withUseRoles(java.lang.String... useRoles)
Java APIClusterRouterPoolSettings
withUseRoles(java.util.Set<java.lang.String> useRoles)
Java APIClusterRouterPoolSettings
withUseRoles(scala.collection.immutable.Seq<java.lang.String> useRoles)
ClusterRouterPoolSettings
withUseRoles(scala.collection.immutable.Set<java.lang.String> useRoles)
-
-
-
Constructor Detail
-
ClusterRouterPoolSettings
public ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
-
ClusterRouterPoolSettings
public ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, java.util.Set<java.lang.String> useRoles)
Java API
-
-
Method Detail
-
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, java.lang.String... useRoles)
-
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<java.lang.String> useRoles)
-
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<java.lang.String> useRoles)
-
fromConfig
public static ClusterRouterPoolSettings fromConfig(com.typesafe.config.Config config)
-
unapply
public static scala.Option<scala.Tuple4<java.lang.Object,java.lang.Object,java.lang.Object,scala.collection.immutable.Set<java.lang.String>>> unapply(ClusterRouterPoolSettings settings)
-
withUseRoles
public ClusterRouterPoolSettings withUseRoles(java.lang.String... useRoles)
Java API
-
totalInstances
public int totalInstances()
- Specified by:
totalInstances
in interfaceClusterRouterSettingsBase
-
maxInstancesPerNode
public int maxInstancesPerNode()
-
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 ClusterRouterPoolSettings withUseRoles(scala.collection.immutable.Set<java.lang.String> useRoles)
-
withUseRoles
public ClusterRouterPoolSettings withUseRoles(scala.collection.immutable.Seq<java.lang.String> useRoles)
-
withUseRoles
public ClusterRouterPoolSettings withUseRoles(java.util.Set<java.lang.String> useRoles)
Java API
-
-