Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 153 for currentTimeMillis (0.09 sec)

  1. src/test/java/jcifs/SmbFileHandleTest.java

        /**
         * Test close(long) successfully.
         *
         * @throws CIFSException
         */
        @Test
        void testCloseWithLastWriteTime_success() throws CIFSException {
            long lastWriteTime = System.currentTimeMillis();
            smbFileHandle.close(lastWriteTime);
            verify(smbFileHandle, times(1)).close(lastWriteTime);
        }
    
        /**
         * Test close(long) when a CIFSException is thrown.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                                long timeout = RESPONSE_TIMEOUT;
                                resp.expiration = System.currentTimeMillis() + timeout;
                                while (resp.hasMoreElements()) {
                                    wait(timeout);
                                    timeout = resp.expiration - System.currentTimeMillis();
                                    if (timeout <= 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbOperationException.java

                }
    
                if (!exception.isRetryable()) {
                    return false;
                }
    
                // Check if we've exceeded time limits
                long totalElapsed = System.currentTimeMillis() - exception.getOperationStartTime();
                if (totalElapsed > maxDelayMs * maxAttempts) {
                    log.debug("Retry time limit exceeded for operation");
                    return false;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        public void testAuthenticationTimestamp() throws InterruptedException {
            long beforeCreation = System.currentTimeMillis();
    
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", "TimestampPass123!");
    
            long afterCreation = System.currentTimeMillis();
    
            // Set a reasonable TTL
            auth.setAuthenticationTTL(1000); // 1 second
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerTest.java

                final String sessionId = crawler.execute();
    
                // Wait for crawler to start running with polling
                long startTime = System.currentTimeMillis();
                while (crawler.crawlerContext.getStatus() != CrawlerStatus.RUNNING && System.currentTimeMillis() - startTime < 5000) {
                    try {
                        Thread.sleep(50);
                    } catch (InterruptedException e) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

            File expiredFile = new File(dir1, "expired.png");
            expiredFile.createNewFile();
            expiredFile.setLastModified(System.currentTimeMillis() - 10000L);
    
            File recentFile = new File(dir1, "recent.png");
            recentFile.createNewFile();
            recentFile.setLastModified(System.currentTimeMillis());
    
            // Override purge to avoid client operations
            ThumbnailManager testManager = new ThumbnailManager() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SecureKeyManager.java

            rawKeys.put(sessionId, keyClone);
    
            // Track creation time for rotation (only for non-archived keys)
            if (!sessionId.contains(".v")) {
                keyCreationTimes.put(sessionId, System.currentTimeMillis());
                keyVersions.putIfAbsent(sessionId, 0);
            }
    
            // Optionally store in KeyStore
            if (keyStore != null) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

         * [setCookie] is not a well-formed cookie.
         */
        @JvmStatic
        fun parse(
          url: HttpUrl,
          setCookie: String,
        ): Cookie? = parse(System.currentTimeMillis(), url, setCookie)
    
        internal fun parse(
          currentTimeMillis: Long,
          url: HttpUrl,
          setCookie: String,
        ): Cookie? {
          val cookiePairEnd = setCookie.delimiterOffset(';')
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            public LeaseEntry(Smb2LeaseKey key, String path, int state) {
                this.leaseKey = key;
                this.path = path;
                this.leaseState = state;
                this.createTime = System.currentTimeMillis();
                this.lastAccessTime = createTime;
                this.epoch = 1;
                this.breaking = false;
            }
    
            /**
             * Update the lease state
             *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                return;
            }
            long expiration = -1;
            if (this.transportContext.getConfig().getNetbiosCachePolicy() != SmbConstants.FOREVER) {
                expiration = System.currentTimeMillis() + this.transportContext.getConfig().getNetbiosCachePolicy() * 1000;
            }
            cacheAddress(hostName, addr, expiration);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
Back to top