- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getIdleTime (0.05 sec)
-
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
this.lastActivityTime = System.currentTimeMillis(); } /** * Get idle time since last activity * * @return idle time in milliseconds */ public long getIdleTime() { return System.currentTimeMillis() - lastActivityTime; } /** * Check if channel is in healthy state * * @return true if healthy */
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
Thread.currentThread().interrupt(); } channelInfo.updateActivity(); assertTrue(channelInfo.getLastActivityTime() > initialTime); assertTrue(channelInfo.getIdleTime() >= 0); } @Test void testMetrics() { assertEquals(0, channelInfo.getBytesSent()); assertEquals(0, channelInfo.getBytesReceived());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
this.isPrimary = false; } public void updateActivity() { this.lastActivityTime = System.currentTimeMillis(); } public long getIdleTime() { return System.currentTimeMillis() - lastActivityTime; } public boolean isHealthy() { return state == ChannelState.ACTIVE || state == ChannelState.ESTABLISHED; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
throw new IOException("SHA-256 not available", e); } } private void performHealthCheck() { for (ChannelInfo channel : channels.values()) { if (channel.getIdleTime() > 60000) { // 1 minute idle // Send keep-alive try { sendKeepAlive(channel); } catch (Exception e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0)