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()));
&& other.getLockTimeout() == this.getLockTimeout() && other.getSearchTimeout() == this.getSearchTimeout() && other.getMessageSyncInterval() == this.getMessageSyncInterval()
this.creation.setLockLease(cache.getLockLease()); if (generateDefaults() || cache.getLockTimeout() != GemFireCacheImpl.DEFAULT_LOCK_TIMEOUT) { this.creation.setLockTimeout(cache.getLockTimeout()); this.creation.setLockLease(cache.getLockLease()); if (generateDefaults() || cache.getLockTimeout() != GemFireCacheImpl.DEFAULT_LOCK_TIMEOUT) { this.creation.setLockTimeout(cache.getLockTimeout());
when(mockCache.getCacheServers()).thenAnswer(invocation -> Collections.unmodifiableList(cacheServers)); when(mockCache.getLockLease()).thenAnswer(newGetter(lockLease)); when(mockCache.getLockTimeout()).thenAnswer(newGetter(lockTimeout)); when(mockCache.getMessageSyncInterval()).thenAnswer(newGetter(messageSyncInterval)); when(mockCache.getReconnectedCache()).thenAnswer(invocation -> mockPeerCache());