Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 174 for currentTimeMillis (0.1 seconds)

  1. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/JobHelperTest.java

                // Mock implementation that doesn't require client
                entity.setLastUpdated(System.currentTimeMillis());
            }
    
            @Override
            public void insert(JobLog entity) {
                // Mock implementation that doesn't require client
                entity.setLastUpdated(System.currentTimeMillis());
            }
    
            @Override
            public void update(JobLog entity) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. 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();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  4. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  5. 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
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  6. 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
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  7. 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();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsIntegrationTest.groovy

            releasedVersionsFile.text == expectedFileContent
        }
    
        ReleasedVersion releasedVersion(String version, long date = System.currentTimeMillis()) {
            new ReleasedVersion(version, format.format(new Date(date)))
        }
    
        ReleasedVersion snapshot(String baseVersion, long date = System.currentTimeMillis()) {
            releasedVersion("${baseVersion}-${format.format(new Date(date))}", date)
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

        val realChain = chain as RealInterceptorChain
        val exchange = realChain.exchange!!
        val request = realChain.request
        val requestBody = request.body
        val sentRequestMillis = System.currentTimeMillis()
    
        var invokeStartEvent = true
        var responseBuilder: Response.Builder? = null
        var sendRequestException: IOException? = null
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 13:46:58 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

        private Trans2SetFileInformation trans2SetFileInformation;
        private final int fid = 123;
        private final int attributes = 1;
        private final long createTime = System.currentTimeMillis();
        private final long lastWriteTime = System.currentTimeMillis();
    
        @BeforeEach
        void setUp() {
            trans2SetFileInformation = new Trans2SetFileInformation(fid, attributes, createTime, lastWriteTime);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.3K bytes
    - Click Count (0)
Back to Top