Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 47 for TTL (0.24 sec)

  1. src/test/java/jcifs/smb1/smb1/DfsTest.java

                configMockedStatic.close();
        }
    
        @Test
        void testCacheEntry() {
            // Test with a specific TTL
            long ttl = 600; // 10 minutes
            Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl);
            long expectedExpiration = System.currentTimeMillis() + ttl * 1000L;
            assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                    + this.link + ",path=" + this.path + ",ttl=" + this.ttl + ",expiration=" + this.expiration + ",remain="
                    + (this.expiration - System.currentTimeMillis()) + "]";
        }
    
        /**
         * Get the time to live for this referral
         *
         * @return the ttl
         */
        public long getTtl() {
            return this.ttl;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. prepare_stmt.go

    // - ttl: The time-to-live duration for each prepared statement in the store. Statements older than this duration will be automatically removed.
    //
    // Returns:
    // - A pointer to a PreparedStmtDB instance, which manages prepared statements using the provided connection pool and configuration.
    func NewPreparedStmtDB(connPool ConnPool, maxSize int, ttl time.Duration) *PreparedStmtDB {
    	return &PreparedStmtDB{
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServicePacket.java

                    + ",recordType=" + recordTypeString + ",recordClass="
                    + (this.recordClass == IN ? "IN" : "0x" + Hexdump.toHexString(this.recordClass, 4)) + ",ttl=" + this.ttl + ",rDataLength="
                    + this.rDataLength);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

                    + recordTypeString + ",recordClass=" + (recordClass == IN ? "IN" : "0x" + Hexdump.toHexString(recordClass, 4)) + ",ttl="
                    + ttl + ",rDataLength=" + rDataLength);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/ReferralTest.java

                int ttl = testCase[2];
    
                ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
                bb.putShort((short) 3);
                bb.putShort((short) 34);
                bb.putShort((short) serverType);
                bb.putShort((short) 0);
                bb.putShort((short) proximity);
                bb.putShort((short) ttl);
                bb.putShort((short) 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/DfsReferral.java

        }
    
        @Override
        public String toString() {
            return "DfsReferral[pathConsumed=" + pathConsumed + ",server=" + server + ",share=" + share + ",link=" + link + ",path=" + path
                    + ",ttl=" + ttl + ",expiration=" + expiration + ",resolveHashes=" + resolveHashes + "]";
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DfsReferralTest.java

            referral.link = "testLink";
            referral.path = "/test/path";
            referral.ttl = 300;
            referral.expiration = 1234567890L;
            referral.resolveHashes = true;
    
            // When
            String expectedString =
                    "DfsReferral[pathConsumed=20,server=testServer,share=testShare,link=testLink,path=/test/path,ttl=300,expiration=1234567890,resolveHashes=true]";
            String actualString = referral.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            final long expiration = System.currentTimeMillis() + Dfs.TTL * 1000;
    
            int di = 0;
            for (;;) {
                /* NTLM HTTP Authentication must be re-negotiated
                 * with challenge from 'server' to access DFS vol. */
                dr.resolveHashes = auth.hashesExternal;
                dr.ttl = resp.referrals[di].ttl;
                dr.expiration = expiration;
                if (path.equals("")) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DfsImpl.java

            CacheEntry(final long ttl) {
                this.expiration = System.currentTimeMillis() + ttl * 1000L;
                this.map = new ConcurrentHashMap<>();
            }
        }
    
        private static class NegativeCacheEntry<T> extends CacheEntry<T> {
    
            /**
             * @param ttl
             */
            NegativeCacheEntry(final long ttl) {
                super(ttl);
            }
    
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top