Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 27 for ttl (0.01 seconds)

  1. internal/lru/lru.go

    //
    // Providing 0 TTL turns expiring off.
    //
    // Delete expired entries every 1/100th of ttl value. Goroutine which deletes expired entries runs indefinitely.
    func NewLRU[K comparable, V any](size int, onEvict EvictCallback[K, V], ttl time.Duration) *LRU[K, V] {
    	if size < 0 {
    		size = 0
    	}
    	if ttl <= 0 {
    		ttl = noEvictionTTL
    	}
    
    	res := LRU[K, V]{
    		ttl:       ttl,
    		size:      size,
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/Dfs.java

            // Default constructor
        }
    
        static class CacheEntry {
            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0) {
                    ttl = Dfs.TTL;
                }
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
        static LogStream log = LogStream.getInstance();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.recordClass = NameServicePacket.IN;
            packet.ttl = 100;
            packet.rDataLength = 0; // Will be set by writeRDataWireFormat
    
            // TestNameServicePacket.writeRDataWireFormat returns 0
            int written = packet.writeResourceRecordWireFormat(dst, 0);
            assertEquals(12, written); // 2 (pointer) + 2 (type) + 2 (class) + 4 (ttl) + 2 (rDataLength) + 0 (rData)
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertThrows(IllegalStateException.class, () -> closedAuth.getPasswordAsCharArray());
        }
    
        /**
         * Test authentication TTL (Time To Live)
         */
        @Test
        @DisplayName("Test authentication TTL expiration")
        public void testAuthenticationTTL() throws InterruptedException {
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", "TTLTestPass123!");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  5. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 22K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

                    + recordTypeString + ",recordClass=" + (recordClass == IN ? "IN" : "0x" + Hexdump.toHexString(recordClass, 4)) + ",ttl="
                    + ttl + ",rDataLength=" + rDataLength);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  7. 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}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        /**
         * Sends a heartbeat document to OpenSearch to indicate this instance is active.
         */
        public void sendHeartbeat() {
            final long now = System.currentTimeMillis();
            final long ttl = ComponentUtil.getFessConfig().getCoordinatorHeartbeatTtlAsInteger().longValue();
            final String hostname = ComponentUtil.getSystemHelper().getHostname();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  9. 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);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 11.1K bytes
    - Click Count (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);
            }
    
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 29.7K bytes
    - Click Count (0)
Back to Top