EmbeddedCacheManager embeddedCacheManager = cacheManagerService.getEmbeddedCacheManager();
TransactionManager transactionManager = componentRegistry.getComponent(TransactionManager.class);
IndexLockController lockControl = new IndexManagerBasedLockController(indexManager, transactionManager);
ClusteredSwitchingBackend backend = new ClusteredSwitchingBackend(componentRegistry, indexName, localBackendFactory, lockControl);
backend.initialize();
embeddedCacheManager.addListener(backend);
return backend;
}
}
@Override