- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 28 for IsExpired (0.04 seconds)
-
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;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 5.9K bytes - Click Count (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; } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 11.4K bytes - Click Count (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() {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.5K bytes - Click Count (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. *Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 6.7K bytes - Click Count (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; }
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 7.8K bytes - Click Count (0) -
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; }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (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())); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 8.5K bytes - Click Count (1) -
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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 12.3K bytes - Click Count (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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 20.8K bytes - Click Count (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) }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0)