Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 153 for currentTimeMillis (0.09 sec)

  1. src/main/java/jcifs/smb1/smb1/TestLocking.java

                final byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
                        ltime = System.currentTimeMillis();
                        wait();
                    }
    
                    try {
                        final double r = Math.random();
                        if (r < 0.333) {
                            f.exists();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java

            urlQueue.setCreateTime(System.currentTimeMillis());
            urlQueue.setDepth(1);
            urlQueue.setMethod("GET");
            urlQueue.setSessionId("id1");
            urlQueue.setUrl("http://www.id1.com/");
    
            urlQueueService.insert(urlQueue);
    
            final OpenSearchUrlQueue urlQueue2 = new OpenSearchUrlQueue();
            urlQueue2.setCreateTime(System.currentTimeMillis());
            urlQueue2.setDepth(1);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 86400000L; // 1 day ago
        private static final long TEST_LAST_ACCESS_TIME = System.currentTimeMillis() - 43200000L; // 12 hours ago
        private static final long TEST_LAST_WRITE_TIME = System.currentTimeMillis() - 3600000L; // 1 hour ago
        private static final long TEST_CHANGE_TIME = System.currentTimeMillis(); // now
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

            }
        }
    
        @Test
        void testTimestampConsistency() {
            long beforeCreation = System.currentTimeMillis();
            WitnessNotification newNotification = new WitnessNotification(WitnessEventType.RESOURCE_CHANGE, "TestResource");
            long afterCreation = System.currentTimeMillis();
    
            assertTrue(newNotification.getTimestamp() >= beforeCreation);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                assertEquals(newContent, content);
            }
        }
    
        @Test
        void testFileDelete() throws Exception {
            long timestamp = System.currentTimeMillis();
            String filename = "delete_" + timestamp + ".txt";
    
            // Create a fresh context for this test to avoid handle conflicts
            CIFSContext testContext = createFreshContext();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

         */
        public void updateActivity() {
            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
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/opensearch/extension/analysis/SynonymLoader.java

            this.analyzer = analyzer;
    
            createSynonymMap(false);
        }
    
        public boolean isUpdate(final long time) {
            if (System.currentTimeMillis() - lastChecked > reloadInterval) {
                lastChecked = System.currentTimeMillis();
                final long timestamp = reloadableFile.lastModified();
                if (timestamp != time) {
                    synchronized (reloadableFile) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun May 18 02:59:16 UTC 2025
    - 6.7K bytes
    - Viewed (1)
  8. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

                return false; // Persistent handles don't expire
            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
        /**
         * Update the last access time
         */
        public void updateAccessTime() {
            this.lastAccessTime = System.currentTimeMillis();
        }
    
        /**
         * Get the file path
         * @return the path
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

        private int rotationCount = 0;
    
        // Key rotation tracking - use atomic for lock-free operations
        private final AtomicLong bytesEncrypted = new AtomicLong(0);
        private long encryptionStartTime = System.currentTimeMillis();
    
        // Configurable key rotation limits with defaults
        private volatile long keyRotationBytesLimit = 1L << 30; // Default: 1GB
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbCopyUtilTest.java

            w.start();
    
            // Wait until writer thread signals readiness
            synchronized (w) {
                long deadline = System.currentTimeMillis() + 2000;
                while (!w.isReady() && System.currentTimeMillis() < deadline) {
                    w.wait(10);
                }
                assertTrue(w.isReady(), "WriterThread should be ready to accept work");
    
                // Act: submit a write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top