- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for updateActivity (0.05 sec)
-
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
*/ public long getLastActivityTime() { return lastActivityTime; } /** * Update activity timestamp */ public void updateActivity() { this.lastActivityTime = System.currentTimeMillis(); } /** * Get idle time since last activity * * @return idle time in milliseconds */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 10.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
// Wait a bit and update activity try { Thread.sleep(10); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } channelInfo.updateActivity(); assertTrue(channelInfo.getLastActivityTime() > initialTime); assertTrue(channelInfo.getIdleTime() >= 0); } @Test void testMetrics() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
assertTrue(channel.isHealthy()); // Test metrics channel.incrementRequestsSent(); channel.addBytesSent(1024); channel.updateActivity(); assertEquals(1, channel.getRequestsSent()); assertEquals(1024, channel.getBytesSent()); assertTrue(channel.getLastActivityTime() > 0); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
// Send echo request as keep-alive // This would need to be implemented with actual echo request/response log.debug("Sending keep-alive for channel {}", channel.getChannelId()); channel.updateActivity(); } private void discoverInterfaces() { if (!multiChannelEnabled) return; // Periodically rediscover interfaces in case of network changes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
this.requestsSent = new AtomicLong(); this.requestsReceived = new AtomicLong(); this.errors = new AtomicLong(); this.isPrimary = false; } public void updateActivity() { this.lastActivityTime = System.currentTimeMillis(); } public long getIdleTime() { return System.currentTimeMillis() - lastActivityTime; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0)