Record Class ClusterRegistry.Cluster
java.lang.Object
java.lang.Record
org.openspaces.core.multicluster.internal.ClusterRegistry.Cluster
- Record Components:
name- the logical namegigaSpace- the proxy operations are issued againstdescriptor- topology metadata for the cluster, ornullfor the defaults
- Enclosing class:
ClusterRegistry
public static record ClusterRegistry.Cluster(String name, GigaSpace gigaSpace, ClusterDescriptor descriptor)
extends Record
One registered cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCluster(String name, GigaSpace gigaSpace, ClusterDescriptor descriptor) Creates an instance of aClusterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegigaSpacerecord component.final inthashCode()Returns a hash code value for this object.booleanisLocal()Whether this cluster is co-located with the client.name()Returns the value of thenamerecord component.site()Site label from the descriptor, if any.final StringtoString()Returns a string representation of this record class.intweight()Relative share for weighted read balancing.
-
Constructor Details
-
Cluster
Creates an instance of aClusterrecord class.- Parameters:
name- the value for thenamerecord componentgigaSpace- the value for thegigaSpacerecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
site
Site label from the descriptor, if any. -
isLocal
public boolean isLocal()Whether this cluster is co-located with the client. -
weight
public int weight()Relative share for weighted read balancing. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
-
gigaSpace
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-