cacheAttributes.put("is-server", Boolean.toString(cache.isServer())); cacheAttributes.put("lock-timeout", Integer.toString(cache.getLockTimeout())); cacheAttributes.put("lock-lease", Integer.toString(cache.getLockLease())); cacheAttributes.put("message-sync-interval", Integer.toString(cache.getMessageSyncInterval())); cacheAttributes.put("search-timeout", Integer.toString(cache.getSearchTimeout()));
boolean sameConfig = other.getLockLease() == this.getLockLease() && other.getLockTimeout() == this.getLockTimeout() && other.getSearchTimeout() == this.getSearchTimeout()
if (generateDefaults() || cache.getLockLease() != GemFireCacheImpl.DEFAULT_LOCK_LEASE) { this.creation.setLockLease(cache.getLockLease()); if (generateDefaults() || cache.getLockLease() != GemFireCacheImpl.DEFAULT_LOCK_LEASE) { this.creation.setLockLease(cache.getLockLease());
when(mockCache.getLockLease()).thenAnswer(newGetter(lockLease)); when(mockCache.getLockTimeout()).thenAnswer(newGetter(lockTimeout)); when(mockCache.getMessageSyncInterval()).thenAnswer(newGetter(messageSyncInterval));