@Override
protected void createCacheManagers() throws Throwable {
ConfigurationBuilder cb = getDefaultClusteredCacheConfig(isSync ? CacheMode.INVALIDATION_SYNC : CacheMode.INVALIDATION_ASYNC, false);
cb.clustering().stateTransfer().timeout(10000);
cb.locking().lockAcquisitionTimeout(500);
createClusteredCaches(2, "invalidation", cb);
cb = getDefaultClusteredCacheConfig(isSync ? CacheMode.INVALIDATION_SYNC : CacheMode.INVALIDATION_ASYNC, true);
cb.clustering().stateTransfer().timeout(10000);
cb.locking().lockAcquisitionTimeout(500);