Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for remainingCapacity (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java

        return delegate().poll(timeout, unit);
      }
    
      @Override
      public void put(E e) throws InterruptedException {
        delegate().put(e);
      }
    
      @Override
      public int remainingCapacity() {
        return delegate().remainingCapacity();
      }
    
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      public E take() throws InterruptedException {
        return delegate().take();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/QueuesTest.java

        assertEquals(1, Queues.newLinkedBlockingDeque(1).remainingCapacity());
        assertEquals(11, Queues.newLinkedBlockingDeque(11).remainingCapacity());
      }
    
      public void testNewLinkedBlockingQueueCapacity() {
        assertThrows(IllegalArgumentException.class, () -> Queues.newLinkedBlockingQueue(0));
        assertEquals(1, Queues.newLinkedBlockingQueue(1).remainingCapacity());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      /** Constructor for use by subclasses. */
      protected ForwardingBlockingDeque() {}
    
      @Override
      protected abstract BlockingDeque<E> delegate();
    
      @Override
      public int remainingCapacity() {
        return delegate().remainingCapacity();
      }
    
      @Override
      public void putFirst(E e) throws InterruptedException {
        delegate().putFirst(e);
      }
    
      @Override
      public void putLast(E e) throws InterruptedException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      /** Constructor for use by subclasses. */
      protected ForwardingBlockingDeque() {}
    
      @Override
      protected abstract BlockingDeque<E> delegate();
    
      @Override
      public int remainingCapacity() {
        return delegate().remainingCapacity();
      }
    
      @Override
      public void putFirst(E e) throws InterruptedException {
        delegate().putFirst(e);
      }
    
      @Override
      public void putLast(E e) throws InterruptedException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java

        return delegate().poll(timeout, unit);
      }
    
      @Override
      public void put(E e) throws InterruptedException {
        delegate().put(e);
      }
    
      @Override
      public int remainingCapacity() {
        return delegate().remainingCapacity();
      }
    
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      public E take() throws InterruptedException {
        return delegate().take();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java

      /** Constructor for use by subclasses. */
      protected ForwardingBlockingDeque() {}
    
      @Override
      protected abstract BlockingDeque<E> delegate();
    
      @Override
      public int remainingCapacity() {
        return delegate().remainingCapacity();
      }
    
      @Override
      public void putFirst(E e) throws InterruptedException {
        delegate().putFirst(e);
      }
    
      @Override
      public void putLast(E e) throws InterruptedException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/EvictingQueue.java

      }
    
      /**
       * Returns the number of additional elements that this queue can accept without evicting; zero if
       * the queue is currently full.
       *
       * @since 16.0
       */
      public int remainingCapacity() {
        return maxSize - size();
      }
    
      @Override
      protected Queue<E> delegate() {
        return delegate;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       *
       * <p>Note that you cannot always tell if an attempt to insert an element will succeed by
       * inspecting {@code remainingCapacity} because it may be the case that another thread is about to
       * insert or remove an element.
       */
      @CanIgnoreReturnValue
      @Override
      public int remainingCapacity() {
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return items.length - count;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        override fun offer(
          element: T,
          timeout: Long,
          unit: TimeUnit,
        ) = error("unsupported")
    
        override fun take() = error("unsupported")
    
        override fun remainingCapacity() = error("unsupported")
    
        override fun drainTo(sink: MutableCollection<in T>) = error("unsupported")
    
        override fun drainTo(
          sink: MutableCollection<in T>,
          maxElements: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * not capacity constrained.
       *
       * @return {@code Integer.MAX_VALUE}
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public int remainingCapacity() {
        return Integer.MAX_VALUE;
      }
    
      /**
       * Removes a single instance of the specified element from this queue, if it is present. More
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top