- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getLastActivityTime (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
void testActivityTracking() { long initialTime = channelInfo.getLastActivityTime(); // 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);
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/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
channel.addBytesSent(1024); channel.updateActivity(); assertEquals(1, channel.getRequestsSent()); assertEquals(1024, channel.getBytesSent()); assertTrue(channel.getLastActivityTime() > 0); } @Test void testChannelFailover() throws Exception { // Test failover mechanism ChannelFailover failover = new ChannelFailover(channelManager);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 8.2K bytes - Click Count (0)