- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for updateHeartbeat (0.07 sec)
-
src/main/java/jcifs/internal/witness/WitnessRegistration.java
return sequenceNumber.incrementAndGet(); } /** * Updates the heartbeat timestamp to current time and resets failure count. */ public void updateHeartbeat() { this.lastHeartbeat = System.currentTimeMillis(); this.heartbeatFailures = 0; } /** * Increments the heartbeat failure count. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java
@Test void testHeartbeatUpdate() throws InterruptedException { long initialTime = registration.getLastHeartbeat(); Thread.sleep(50); // Ensure sufficient time difference registration.updateHeartbeat(); // After update, should not be expired with long timeout assertFalse(registration.isExpired(60000)); // Verify heartbeat was actually updated
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 5.1K bytes - Viewed (0)