- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 28 for IsExpired (0.04 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
* * @return true if expired */ public boolean isExpired() { return System.currentTimeMillis() - lastUpdateTime > maxAge; } /** * Check if cache needs refresh * * @return true if refresh needed */ public boolean needsRefresh() { return isExpired() || hasChanges; } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0) -
cmd/jwt.go
return nil, errAccessKeyDisabled } return nil, errInvalidAccessKeyID } cred := u.Credentials // Expired credentials return error. if cred.IsTemp() && cred.IsExpired() { return nil, errInvalidAccessKeyID } return []byte(cred.SecretKey), nil } // this means claims.AccessKey == rootAccessKey if !globalAPIConfig.permitRootAccess() {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegistration.java
/** * Checks if this registration has expired based on the timeout. * * @param timeoutMs the timeout in milliseconds * @return true if the registration is expired */ public boolean isExpired(long timeoutMs) { return System.currentTimeMillis() - lastHeartbeat > timeoutMs; } // Getters and setters /** * Gets the last heartbeat timestamp. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
final TimeoutTask task = e.getElement(); if (task.isCanceled()) { e.remove(); } else if (!task.isStopped() && task.isExpired()) { expiredTask.add(task); if (!task.isPermanent()) { e.remove(); } } } return expiredTask; }
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java
if (handleInfo == null) { return CompletableFuture.failedFuture(new IOException("Handle info cannot be null")); } if (handleInfo.isExpired()) { return CompletableFuture.failedFuture(new IOException("Handle has expired and cannot be reconnected: " + handleInfo.getPath())); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 8.5K bytes - Viewed (1) -
docs/smb3-features/06-witness-protocol-design.md
return sequenceNumber.incrementAndGet(); } public void updateHeartbeat() { this.lastHeartbeat = System.currentTimeMillis(); } public boolean isExpired(long timeoutMs) { return System.currentTimeMillis() - lastHeartbeat > timeoutMs; } // Getters and setters... public String getRegistrationId() { return registrationId; }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 42K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
private void checkHeartbeats() { long timeout = context.getConfig().getWitnessHeartbeatTimeout(); for (WitnessRegistration registration : registrations.values()) { if (registration.isExpired(timeout)) { log.warn("Witness registration expired: {}", registration.getRegistrationId()); registration.setState(WitnessRegistrationState.EXPIRED);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
assertTrue(entry.isComplete()); assertFalse(entry.needsRefresh()); // Wait for expiration Thread.sleep(100); assertTrue(entry.isExpired()); assertTrue(entry.needsRefresh()); // After expiration, cache should be treated as invalid by manager // (In real implementation, expired entries might be cleaned up automatically) }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
private void cleanupExpiredEntries() { List<String> expiredPaths = new ArrayList<>(); for (Map.Entry<String, DirectoryCacheEntry> entry : directoryCache.entrySet()) { if (entry.getValue().isExpired()) { expiredPaths.add(entry.getKey()); } } for (String path : expiredPaths) { log.debug("Cleaning up expired directory cache entry: {}", path);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0)