- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for getIdleTime (0.06 seconds)
-
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 */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 10.6K bytes - Click Count (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; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 39.6K bytes - Click Count (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());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.4K bytes - Click Count (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) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 20K bytes - Click Count (0)