@Override public WanReplicationRef getWanReplicationRef() { final WanReplicationRef wanReplicationRef = super.getWanReplicationRef(); if (wanReplicationRef == null) { return null; } return wanReplicationRef.getAsReadOnly(); }
@Override public WanReplicationRef getWanReplicationRef() { final WanReplicationRef wanReplicationRef = super.getWanReplicationRef(); if (wanReplicationRef == null) { return null; } return wanReplicationRef.getAsReadOnly(); }
private boolean canPersistWanReplicatedData(CacheConfig cacheConfig, NodeEngine nodeEngine) { boolean persistWanReplicatedData = false; WanReplicationRef wanReplicationRef = cacheConfig.getWanReplicationRef(); if (wanReplicationRef != null) { String wanReplicationRefName = wanReplicationRef.getName(); Config config = nodeEngine.getConfig(); WanReplicationConfig wanReplicationConfig = config.getWanReplicationConfig(wanReplicationRefName); if (wanReplicationConfig != null) { WanConsumerConfig wanConsumerConfig = wanReplicationConfig.getWanConsumerConfig(); if (wanConsumerConfig != null) { persistWanReplicatedData = wanConsumerConfig.isPersistWanReplicatedData(); } } } return persistWanReplicatedData; }
private boolean canPersistWanReplicatedData(CacheConfig cacheConfig, NodeEngine nodeEngine) { boolean persistWanReplicatedData = false; WanReplicationRef wanReplicationRef = cacheConfig.getWanReplicationRef(); if (wanReplicationRef != null) { String wanReplicationRefName = wanReplicationRef.getName(); Config config = nodeEngine.getConfig(); WanReplicationConfig wanReplicationConfig = config.getWanReplicationConfig(wanReplicationRefName); if (wanReplicationConfig != null) { WanConsumerConfig wanConsumerConfig = wanReplicationConfig.getWanConsumerConfig(); if (wanConsumerConfig != null) { persistWanReplicatedData = wanConsumerConfig.isPersistWanReplicatedData(); } } } return persistWanReplicatedData; }
out.writeObject(new LegacyCacheEvictionConfig(config.getEvictionConfig())); out.writeObject(config.getWanReplicationRef());
out.writeObject(new LegacyCacheEvictionConfig(config.getEvictionConfig())); out.writeObject(config.getWanReplicationRef());
target.setStoreByValue(isStoreByValue()); target.setUriString(getUriString()); target.setWanReplicationRef(getWanReplicationRef()); target.setWriteThrough(isWriteThrough()); target.setClassLoader(classLoader);
target.setStoreByValue(isStoreByValue()); target.setUriString(getUriString()); target.setWanReplicationRef(getWanReplicationRef()); target.setWriteThrough(isWriteThrough()); target.setClassLoader(classLoader);