Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ConcurrentLinkedQueue (1.44 sec)

  1. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

          ImmutableList.of(
              subscriber(bus, s1, "handleString", String.class),
              subscriber(bus, s2, "handleString", String.class));
    
      private final ConcurrentLinkedQueue<Object> dispatchedSubscribers = new ConcurrentLinkedQueue<>();
    
      private Dispatcher dispatcher;
    
      public void testPerThreadQueuedDispatcher() {
        dispatcher = Dispatcher.perThreadDispatchQueue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Queues.java

        return deque;
      }
    
      // ConcurrentLinkedQueue
    
      /** Creates an empty {@code ConcurrentLinkedQueue}. */
      @J2ktIncompatible
      @GwtIncompatible // ConcurrentLinkedQueue
      public static <E> ConcurrentLinkedQueue<E> newConcurrentLinkedQueue() {
        return new ConcurrentLinkedQueue<>();
      }
    
      /**
       * Creates a {@code ConcurrentLinkedQueue} containing the elements of the specified iterable, in
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  3. 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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. 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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         * Creates and returns a new instance of {@link ConcurrentLinkedQueue}.
         *
         * @param <E> the element type of {@link ConcurrentLinkedQueue}
         * @return a new instance of {@link ConcurrentLinkedQueue}
         * @see ConcurrentLinkedQueue#ConcurrentLinkedQueue()
         */
        public static <E> ConcurrentLinkedQueue<E> newConcurrentLinkedQueue() {
            return new ConcurrentLinkedQueue<>();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 49.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Queues.java

        return deque;
      }
    
      // ConcurrentLinkedQueue
    
      /** Creates an empty {@code ConcurrentLinkedQueue}. */
      @J2ktIncompatible
      @GwtIncompatible // ConcurrentLinkedQueue
      public static <E> ConcurrentLinkedQueue<E> newConcurrentLinkedQueue() {
        return new ConcurrentLinkedQueue<>();
      }
    
      /**
       * Creates a {@code ConcurrentLinkedQueue} containing the elements of the specified iterable, in
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  7. 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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 9.5K 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.function.IntConsumer;
    import java.util.stream.IntStream;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/crypto/CachedCipher.java

        /**
         * The queue of ciphers for encryption.
         */
        protected Queue<Cipher> encryptoQueue = new ConcurrentLinkedQueue<>();
    
        /**
         * The queue of ciphers for decryption.
         */
        protected Queue<Cipher> decryptoQueue = new ConcurrentLinkedQueue<>();
    
        /**
         * Encrypts the given data.
         *
         * @param data
         *            the data to encrypt
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/eventbus/Dispatcher.java

        // probably provide a stronger order guarantee, though that order would obviously be different
        // in some cases.
    
        /** Global event queue. */
        private final ConcurrentLinkedQueue<EventWithSubscriber> queue = new ConcurrentLinkedQueue<>();
    
        @Override
        void dispatch(Object event, Iterator<Subscriber> subscribers) {
          checkNotNull(event);
          while (subscribers.hasNext()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top