Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ConcurrentLinkedQueue (0.34 sec)

  1. guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

                new TestStringQueueGenerator() {
                  @Override
                  public Queue<String> create(String[] elements) {
                    return new ConcurrentLinkedQueue<>(MinimalCollection.of(elements));
                  }
                })
            .named("ConcurrentLinkedQueue")
            .withFeatures(
                CollectionFeature.GENERAL_PURPOSE, CollectionFeature.KNOWN_ORDER, CollectionSize.ANY)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

        return new CountingRemovalListener<>();
      }
    
      /** {@link RemovalListener} that adds all {@link RemovalNotification} objects to a queue. */
      @GwtIncompatible // ConcurrentLinkedQueue
      static class QueuingRemovalListener<K, V> extends ConcurrentLinkedQueue<RemovalNotification<K, V>>
          implements RemovalListener<K, V> {
    
        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
          add(notification);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

        return new CountingRemovalListener<>();
      }
    
      /** {@link RemovalListener} that adds all {@link RemovalNotification} objects to a queue. */
      @GwtIncompatible // ConcurrentLinkedQueue
      static class QueuingRemovalListener<K, V> extends ConcurrentLinkedQueue<RemovalNotification<K, V>>
          implements RemovalListener<K, V> {
    
        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
          add(notification);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

                new TestStringQueueGenerator() {
                  @Override
                  public Queue<String> create(String[] elements) {
                    return new ConcurrentLinkedQueue<>(MinimalCollection.of(elements));
                  }
                })
            .named("ConcurrentLinkedQueue")
            .withFeatures(
                CollectionFeature.GENERAL_PURPOSE, CollectionFeature.KNOWN_ORDER, CollectionSize.ANY)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 7.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Queues;
    import com.google.common.util.concurrent.Uninterruptibles;
    import java.util.concurrent.ConcurrentLinkedQueue;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.CyclicBarrier;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Dispatcher} implementations.
     *
     * @author Colin Decker
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/crypto/CachedCipher.java

        protected String key;
    
        protected String charsetName = CoreLibConstants.UTF_8;
    
        protected Queue<Cipher> encryptoQueue = new ConcurrentLinkedQueue<>();
    
        protected Queue<Cipher> decryptoQueue = new ConcurrentLinkedQueue<>();
    
        public byte[] encrypto(final byte[] data) {
            final Cipher cipher = pollEncryptoCipher();
            byte[] encrypted;
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/Dispatcher.java

    import static java.util.Objects.requireNonNull;
    
    import com.google.common.collect.Queues;
    import java.util.Iterator;
    import java.util.Queue;
    import java.util.concurrent.ConcurrentLinkedQueue;
    
    /**
     * Handler for dispatching events to subscribers, providing different event ordering guarantees that
     * make sense for different situations.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

    import static org.junit.Assert.assertThrows;
    
    import com.google.common.util.concurrent.UncheckedExecutionException;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.Queue;
    import java.util.concurrent.ConcurrentLinkedQueue;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.TimeUnit;
    import java.util.function.IntConsumer;
    import java.util.stream.IntStream;
    import junit.framework.TestCase;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Queues;
    import com.google.common.util.concurrent.Uninterruptibles;
    import java.util.concurrent.ConcurrentLinkedQueue;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.CyclicBarrier;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Dispatcher} implementations.
     *
     * @author Colin Decker
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  10. docs/contribute/concurrency.md

    #### Per-Connection Locks
    
    Each connection has its own lock. The connections in the pool are all in a `ConcurrentLinkedQueue`. Due to data races, iterators of this queue may return removed connections. Callers must check the connection's `noNewExchanges` property before using connections from the pool.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
Back to top