- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 149 for currentTimeMillis (0.1 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
) : Interceptor { @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val cacheCandidate = cache?.get(chain.request().requestForCache()) val now = System.currentTimeMillis() val strategy = CacheStrategy.Factory(now, chain.request(), cacheCandidate).compute() val networkRequest = strategy.networkRequest val cacheResponse = strategy.cacheResponseRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 10.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java
String content = expectedContent.get(resource.getName()); if (content != null) { resource.setContentLength(content.length()); resource.setLastModified(System.currentTimeMillis()); inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))); } else {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
} @Test @DisplayName("Test Response interface methods - getExpiration") void testGetExpiration() { // Given Long expectedExpiration = System.currentTimeMillis() + 30000L; when(response.getExpiration()).thenReturn(expectedExpiration); // When Long actualExpiration = response.getExpiration(); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/AuthenticationProvider.java
this.username = username; this.domain = domain; this.authType = authType; this.timestamp = System.currentTimeMillis(); this.clientAddress = clientAddress; this.serverAddress = serverAddress; } public String getUsername() { return username; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 3.9K bytes - Viewed (1) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
* * @param channelId channel identifier */ public FailoverState(String channelId) { this.channelId = channelId; this.failureTime = System.currentTimeMillis(); this.retryCount = 0; this.nextRetryTime = failureTime + 1000; // Initial 1 second delay } /** * Get channel ID *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 11.6K bytes - Viewed (0) -
src/test/java/jcifs/EmptyIteratorTest.java
} @Test @DisplayName("EmptyIterator should be lightweight and efficient") void testPerformanceCharacteristics() { // When - create many instances quickly long startTime = System.currentTimeMillis(); for (int i = 0; i < 10000; i++) { EmptyIterator iterator = new EmptyIterator(); iterator.hasNext(); iterator.next(); iterator.remove();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
assertEquals(value, ServerMessageBlock.readInt8(buffer, 0)); } @Test void testTimeReadWrite() { byte[] buffer = new byte[8]; long time = System.currentTimeMillis(); ServerMessageBlock.writeTime(time, buffer, 0); long readTime = ServerMessageBlock.readTime(buffer, 0); // Precision may be lost, so check within a second
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResultTest.java
} long startTime = System.currentTimeMillis(); UpgradeResult result = new UpgradeResult(largePomSet, largePomSet, Set.of()); long endTime = System.currentTimeMillis(); // Performance assertion - should complete within reasonable time long duration = endTime - startTime;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Jun 07 06:22:47 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
response.fileAttributes = 0x20; // ATTR_ARCHIVE assertEquals(0x20, response.fileAttributes); } @Test void testSetLastWriteTime() { long time = System.currentTimeMillis(); response.lastWriteTime = time; assertEquals(time, response.lastWriteTime); } @Test void testSetDataSize() { response.dataSize = 1024;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/Slf4jMavenTransferListener.java
message.append(resource.getRepositoryUrl()) .append(resource.getResourceName()) .append(" ("); format.format(message, contentLength); long duration = System.currentTimeMillis() - resource.getTransferStartTime(); if (duration > 0L) { double bytesPerSecond = contentLength / (duration / 1000.0); message.append(" at ");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Nov 08 08:49:11 UTC 2024 - 3.8K bytes - Viewed (0)