Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 174 for currentTimeMillis (0.17 seconds)

  1. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            SMBUtil.writeInt4(1, buffer, 4); // fileIndex
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 8); // creationTime
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 16); // lastAccessTime
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 24); // lastWriteTime
            SMBUtil.writeTime(System.currentTimeMillis(), buffer, 32); // changeTime
            SMBUtil.writeInt8(1024L, buffer, 40); // endOfFile
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/timer/LogNotificationTargetTest.java

            // Add events to buffer
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "ERROR", "org.test", "msg1", null));
            ComponentUtil.getLogNotificationHelper()
                    .offer(new LogNotificationEvent(System.currentTimeMillis(), "WARN", "org.test", "msg2", null));
    
            // expired() will drain buffer then fail on OpenSearch (not available) but should not throw
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

            try {
                lastAccessTime = System.currentTimeMillis();
                return children.containsKey(name);
            } finally {
                lock.readLock().unlock();
            }
        }
    
        /**
         * Check if cache entry is expired
         *
         * @return true if expired
         */
        public boolean isExpired() {
            return System.currentTimeMillis() - lastUpdateTime > maxAge;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/log/LoggerTest.java

        public void testPerformance() throws Exception {
            final int num = 100;
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                System.out.println("test" + i);
            }
            final long sysout = System.currentTimeMillis() - start;
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                logger.fatal("test" + i);
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/SmbCircuitBreaker.java

        private boolean shouldAttemptReset() {
            long timeSinceLastFailure = System.currentTimeMillis() - lastFailureTime.get();
            return timeSinceLastFailure >= resetTimeoutMillis;
        }
    
        private void transitionTo(State newState) {
            State oldState = state.getAndSet(newState);
            lastStateChangeTime.set(System.currentTimeMillis());
    
            if (oldState != newState) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. docs/smb3-features/04-directory-leasing-design.md

        // First listing should hit the server
        long start1 = System.currentTimeMillis();
        SmbFile[] files1 = dir.listFiles();
        long time1 = System.currentTimeMillis() - start1;
        
        // Second listing should use cache (much faster)
        long start2 = System.currentTimeMillis();
        SmbFile[] files2 = dir.listFiles();
        long time2 = System.currentTimeMillis() - start2;
        
        assertEquals(files1.length, files2.length);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            private volatile long firstConnectionTime = System.currentTimeMillis();
            private volatile long lastActivityTime = System.currentTimeMillis();
    
            void recordConnection() {
                connectionsCreated.incrementAndGet();
                lastActivityTime = System.currentTimeMillis();
            }
    
            void recordSuccess() {
                successCount.incrementAndGet();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/timer/TimeoutTask.java

            this.timeoutMillis = timeout * 1000L;
            this.permanent = permanent;
            this.startTime = System.currentTimeMillis();
        }
    
        /**
         * Returns whether the task has expired.
         *
         * @return whether the task has expired
         */
        public boolean isExpired() {
            return System.currentTimeMillis() >= startTime + timeoutMillis;
        }
    
        /**
         * Returns whether the task is permanent.
         *
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/witness/WitnessRegistration.java

            this.serverAddress = serverAddress;
            this.serviceType = serviceType;
            this.version = WitnessVersion.VERSION_2; // Use latest by default
            this.registrationTime = System.currentTimeMillis();
            this.sequenceNumber = new AtomicLong(0);
            this.state = WitnessRegistrationState.REGISTERING;
            this.lastHeartbeat = registrationTime;
            this.heartbeatFailures = 0;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

    import okhttp3.dnsoverhttps.DohProviders.providers
    import org.conscrypt.OpenSSLProvider
    
    private fun runBatch(
      dnsProviders: List<DnsOverHttps>,
      names: List<String>,
    ) {
      var time = System.currentTimeMillis()
      for (dns in dnsProviders) {
        println("Testing ${dns.url}")
        for (host in names) {
          print("$host: ")
          System.out.flush()
          try {
            val results = dns.lookup(host)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top