Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 174 for currentTimeMillis (0.1 seconds)

  1. src/test/java/jcifs/http/NetworkExplorerTest.java

            when(file1.getName()).thenReturn("document.pdf");
            when(file1.isDirectory()).thenReturn(false);
            when(file1.length()).thenReturn(2048L);
            when(file1.lastModified()).thenReturn(System.currentTimeMillis());
    
            SmbFile dir1 = mock(SmbFile.class);
            when(dir1.getName()).thenReturn("folder/");
            when(dir1.isDirectory()).thenReturn(true);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                // Prepare signed data
                SMBUtil.writeInt4(ServerMessageBlock2.SMB2_FLAGS_SIGNED, data, 16);
    
                long startTime = System.currentTimeMillis();
    
                for (int t = 0; t < threadCount; t++) {
                    executor.submit(() -> {
                        try {
                            startLatch.await();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 43.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/PurgeLogJobTest.java

                @Override
                public long getCurrentTimeAsLong() {
                    // Return consistent time for testing
                    if (expectedTime[0] == 0) {
                        expectedTime[0] = System.currentTimeMillis();
                    }
                    return expectedTime[0];
                }
            };
    
            FessConfig fessConfig = new TestFessConfig() {
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 32.7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/audit/SecurityAuditLogger.java

                log.error("Failed to log audit event", e);
            }
        }
    
        private boolean checkRateLimit(EventType type) {
            String key = type.name();
            long currentWindow = System.currentTimeMillis() / rateLimitWindow;
            String windowKey = key + "_" + currentWindow;
    
            AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbSessionImpl.java

                }
    
                try {
                    if (params.contains(RequestParam.NO_TIMEOUT)) {
                        this.expiration = -1;
                    } else {
                        this.expiration = System.currentTimeMillis() + this.transportContext.getConfig().getSoTimeout();
                    }
    
                    T chainedResponse;
                    try {
                        chainedResponse = sessionSetup(request, response);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

                baos.write(channel.getLocalInterface().getAddress().getAddress());
                baos.write(channel.getRemoteInterface().getAddress().getAddress());
                baos.write(ByteBuffer.allocate(8).putLong(System.currentTimeMillis()).array());
            } catch (IOException e) {
                // Should not happen with ByteArrayOutputStream
                log.error("Error creating binding info", e);
            }
    
            return baos.toByteArray();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

            if (type2 == null || responseKeyNT == null || clientChallenge == null) {
                return null;
            }
            final long nanos1601 = (System.currentTimeMillis() + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L;
            return NtlmPasswordAuthentication.getNTLMv2Response(responseKeyNT, type2.getChallenge(), clientChallenge, nanos1601,
                    type2.getTargetInformation());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                                if (!downloaded) {
                                    // prevent additional checks of this artifact until it expires again
                                    destination.setLastModified(System.currentTimeMillis());
                                }
                            } catch (UnsupportedOperationException e) {
                                // older wagons throw this. Just get() instead
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

            final File tempDir = new File(System.getProperty("java.io.tmpdir"));
            final File nonExistentParent = new File(tempDir, "non_existent_" + System.currentTimeMillis());
            final File outputFile = new File(nonExistentParent, "output.txt");
    
            try {
                assertFalse(nonExistentParent.exists());
                assertFalse(outputFile.exists());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/hash/Hashing.java

       * dependent on the hash codes they produce will fail sooner.
       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      static final int GOOD_FAST_HASH_SEED = (int) System.currentTimeMillis();
    
      /**
       * Returns a hash function implementing the <a
       * href="https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp">32-bit murmur3
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 29.8K bytes
    - Click Count (0)
Back to Top