- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for IsExpired (0.76 sec)
-
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertTrue(auth.isExpired()); // Reset timestamp auth.resetAuthenticationTimestamp(); assertFalse(auth.isExpired()); // Test with no expiration (TTL = 0) auth.setAuthenticationTTL(0); Thread.sleep(100); assertFalse(auth.isExpired()); // Test with negative TTL (no expiration) auth.setAuthenticationTTL(-1); Thread.sleep(100);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleInfoTest.java
null); assertFalse(durableInfo.isExpired()); // Wait for expiration try { Thread.sleep(150); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } assertTrue(durableInfo.isExpired()); // Test persistent handle (never expires)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
*/ public HandleInfo getHandleForReconnect(String path) { lock.readLock().lock(); try { HandleInfo info = handles.get(path); if (info != null && !info.isExpired()) { info.setReconnecting(true); info.updateAccessTime(); log.debug("Found handle for reconnect: {}", path); return info; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java
assertFalse(registration.isExpired(60000)); // Verify heartbeat was actually updated assertTrue(registration.getLastHeartbeat() > initialTime); } @Test void testExpiration() throws InterruptedException { // Registration should not be expired initially with long timeout assertFalse(registration.isExpired(60000));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.1K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
@Override public boolean containsKey(Object key) { return cachingHashMap.containsKey(key) && !isExpired(cachingHashMap.get(key)); } @Override public boolean containsValue(Object value) { for (Timestamped<V> val : cachingHashMap.values()) { if (val.getValue().equals(value)) { if (!isExpired(val)) { return true; } } } return false; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutTask.java
this.startTime = System.currentTimeMillis(); } /** * Returns whether the task has expired. * * @return whether the task has expired */ public boolean isExpired() { return System.currentTimeMillis() >= startTime + timeoutMillis; } /** * Returns whether the task is permanent. * * @return whether the task is permanent */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.7K bytes - Viewed (0) -
docs/smb3-features/02-persistent-handles-design.md
HandleType.DURABLE_V2, 1000, // 1 second timeout null ); assertFalse(info.isExpired()); // Wait for expiration Thread.sleep(1500); assertTrue(info.isExpired()); // Persistent handles don't expire HandleInfo persistent = new HandleInfo( "/test/file2.txt",
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 31.6K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
} finally { lock.readLock().unlock(); } } public boolean isExpired() { return System.currentTimeMillis() - lastUpdateTime > maxAge; } public boolean needsRefresh() { return isExpired() || hasChanges; } public void markComplete() { lock.writeLock().lock(); try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java
entry.setMaxAge(100); // 100ms assertFalse(entry.isExpired()); assertFalse(entry.needsRefresh()); // Wait for expiration try { Thread.sleep(150); } catch (InterruptedException e) { // Ignore } assertTrue(entry.isExpired()); assertTrue(entry.needsRefresh()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java
this.leaseKey = leaseKey; this.reconnecting = false; } /** * Check if this handle has expired * @return true if expired */ public boolean isExpired() { if (type == HandleType.PERSISTENT) { return false; // Persistent handles don't expire } long elapsed = System.currentTimeMillis() - lastAccessTime;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 5.9K bytes - Viewed (0)