Package org.openspaces.core.multicluster.internal


package org.openspaces.core.multicluster.internal
Implementation of the multi-cluster proxy. Not API - subject to change without notice.

MultiClusterRouter is the router: every space operation on a DefaultMultiClusterGigaSpace arrives there as a lambda that applies it to one cluster, together with the OperationKind that says what it does, and is dispatched to one cluster or fanned out across several. ClusterRegistry holds the topology, MultiClusterControlSupport answers the multi-cluster API's own methods, and the routing and health sub-packages hold the read selectors, write executors, health tracking and failover policies.

The proxy is a class rather than a JDK dynamic proxy, so applications can construct one directly and every operation is resolved by javac instead of by name at runtime. GigaSpace declares 189 methods, so DefaultMultiClusterGigaSpace is long - but an abstract method added to GigaSpace then breaks the build rather than reaching a handler that has never heard of it. A default method would still be inherited silently, which DefaultMultiClusterGigaSpaceCompletenessTest catches, and OperationClassifierCompletenessTest still enforces that every method has a routing decision.