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 SummaryConstructorsConstructorDescriptionClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, Set<String> useRoles) Java APIClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) 
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.ProductproductElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
ClusterRouterPoolSettingspublic ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) 
- 
ClusterRouterPoolSettingspublic ClusterRouterPoolSettings(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, Set<String> useRoles) Java API
 
- 
- 
Method Details- 
applypublic static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, String... useRoles) 
- 
applypublic static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Set<String> useRoles) 
- 
applypublic static ClusterRouterPoolSettings apply(int totalInstances, int maxInstancesPerNode, boolean allowLocalRoutees, scala.collection.immutable.Seq<String> useRoles) 
- 
fromConfig
- 
unapplypublic static scala.Option<scala.Tuple4<Object,Object, unapplyObject, scala.collection.immutable.Set<String>>> (ClusterRouterPoolSettings settings) 
- 
withUseRolesJava API
- 
totalInstancespublic int totalInstances()- Specified by:
- totalInstancesin interface- ClusterRouterSettingsBase
 
- 
maxInstancesPerNodepublic int maxInstancesPerNode()
- 
allowLocalRouteespublic boolean allowLocalRoutees()- Specified by:
- allowLocalRouteesin interface- ClusterRouterSettingsBase
 
- 
useRoles- Specified by:
- useRolesin interface- ClusterRouterSettingsBase
 
- 
hashCodepublic int hashCode()
- 
canEqual- Specified by:
- canEqualin interface- scala.Equals
 
- 
productAritypublic int productArity()- Specified by:
- productArityin interface- scala.Product
 
- 
productElement- Specified by:
- productElementin interface- scala.Product
 
- 
equals
- 
toString
- 
withUseRoles
- 
withUseRoles
- 
withUseRolesJava API
 
-