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 TypeMethodDescriptionbooleanstatic ClusterRouterPoolSettingsstatic ClusterRouterPoolSettingsapply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<String> useRoles) static ClusterRouterPoolSettingsapply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) booleanbooleanstatic ClusterRouterPoolSettingsfromConfig(com.typesafe.config.Config config) inthashCode()intintproductElement(int n) toString()intunapply(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, waitMethods 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:
totalInstancesin interfaceClusterRouterSettingsBase
-
maxInstancesPerNode
public int maxInstancesPerNode() -
allowLocalRoutees
public boolean allowLocalRoutees()- Specified by:
allowLocalRouteesin interfaceClusterRouterSettingsBase
-
useRoles
- Specified by:
useRolesin interfaceClusterRouterSettingsBase
-
hashCode
public int hashCode() -
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
equals
-
toString
-
withUseRoles
-
withUseRoles
-
withUseRoles
Java API
-