Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for AtomicLong (0.05 sec)

  1. CLAUDE.md

    **Template Method**: `AbstractCrawlerClient`, `AbstractExtractor` - common logic with overrides
    **DI**: LastaFlute container with `@Resource` and XML config
    
    ### Core Principles
    
    **Thread Safety**:
    - `AtomicLong` for counters (`CrawlerContext.accessCount`)
    - `volatile` for status flags
    - Synchronized blocks for critical sections
    - Thread-local storage via `CrawlingParameterUtil`
    
    **Resource Management**:
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       *
       * @since 21.0
       */
      @CanIgnoreReturnValue
      public long getAndUpdate(K key, LongUnaryOperator updaterFunction) {
        checkNotNull(updaterFunction);
        AtomicLong holder = new AtomicLong();
        map.compute(
            key,
            (K k, @Nullable Long value) -> {
              long oldValue = (value == null) ? 0L : value.longValue();
              holder.set(oldValue);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/LongAdder.java

    import com.google.common.annotations.J2ktIncompatible;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * One or more variables that together maintain an initially zero {@code long} sum. When updates
     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/transport/Transport.java

        /**
         * Map for tracking pending responses by their key
         */
        protected final Map<Long, Response> response_map = new ConcurrentHashMap<>(10);
        private final AtomicLong usageCount = new AtomicLong(1);
    
        /**
         * Acquires a reference to this transport, incrementing the usage count.
         *
         * @return session increased usage count
         */
        public Transport acquire() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.lang.reflect.Field;
    import java.net.Socket;
    import java.util.concurrent.atomic.AtomicLong;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

        private volatile boolean treeAcquired;
        private volatile boolean delegateAcquired;
    
        private SmbTransportInternal exclusiveTransport;
        private boolean nonPooled;
    
        private final AtomicLong usageCount = new AtomicLong();
    
        private static final Random RAND = new Random();
    
        protected SmbTreeConnection(final CIFSContext ctx) {
            this.ctx = ctx;
            this.delegate = null;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  7. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    import java.util.concurrent.atomic.AtomicLong;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.regex.MatchResult;
    import java.util.regex.Pattern;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.util.concurrent.ThreadFactory;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.concurrent.atomic.AtomicInteger;
    import java.util.concurrent.atomic.AtomicLong;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.regex.MatchResult;
    import java.util.regex.Pattern;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * {@code new FIFOEntry(anEntry)} instead of a plain entry object.
     *
     * <pre>{@code
     * class FIFOEntry<E extends Comparable<? super E>> implements Comparable<FIFOEntry<E>> {
     *   static final AtomicLong seq = new AtomicLong();
     *
     *   final long seqNum;
     *   final E entry;
     *
     *   public FIFOEntry(E entry) {
     *     seqNum = seq.getAndIncrement();
     *     this.entry = entry;
     *   }
     *
     *   public E getEntry() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

        private final InetAddress localAddr;
        private final int localPort;
        private final Address address;
        private Socket socket;
        private int port;
        private final AtomicLong mid = new AtomicLong();
        private OutputStream out;
        private InputStream in;
        private final byte[] sbuf = new byte[1024]; /* small local buffer */
        private long sessionExpiration;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top