Package org.apache.pekko.cluster.routing
Class ClusterRouterPoolSettings
java.lang.Object
org.apache.pekko.cluster.routing.ClusterRouterPoolSettings
- All Implemented Interfaces:
Serializable
,ClusterRouterSettingsBase
,scala.Equals
,scala.Product
public final class ClusterRouterPoolSettings
extends Object
implements scala.Product, Serializable, ClusterRouterSettingsBase
totalInstances
of cluster router must be > 0
maxInstancesPerNode
of cluster router must be > 0
maxInstancesPerNode
of cluster router must be 1 when routeesPath is defined- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClusterRouterPoolSettings
(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, Set<String> useRoles) Java APIClusterRouterPoolSettings
(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ClusterRouterPoolSettings
static ClusterRouterPoolSettings
apply
(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<String> useRoles) static ClusterRouterPoolSettings
apply
(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) boolean
boolean
static ClusterRouterPoolSettings
fromConfig
(com.typesafe.config.Config config) int
hashCode()
int
int
productElement
(int n) toString()
int
unapply
(ClusterRouterPoolSettings settings) scala.collection.immutable.Set<String>
useRoles()
withUseRoles
(String... useRoles) Java APIwithUseRoles
(Set<String> useRoles) Java APIwithUseRoles
(scala.collection.immutable.Seq<String> useRoles) withUseRoles
(scala.collection.immutable.Set<String> useRoles) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
ClusterRouterPoolSettings
public ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) -
ClusterRouterPoolSettings
public ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, Set<String> useRoles) Java API
-
-
Method Details
-
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, String... useRoles) -
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) -
apply
public static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<String> useRoles) -
fromConfig
-
unapply
public static scala.Option<scala.Tuple4<Object,Object, unapplyObject, scala.collection.immutable.Set<String>>> (ClusterRouterPoolSettings settings) -
withUseRoles
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
- Specified by:
useRoles
in interfaceClusterRouterSettingsBase
-
hashCode
public int hashCode() -
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
equals
-
toString
-
withUseRoles
-
withUseRoles
-
withUseRoles
Java API
-