Interface RBoundedBlockingQueue<V>

Type Parameters:
V - the type of elements held in this collection
All Superinterfaces:
BlockingQueue<V>, Collection<V>, Iterable<V>, Queue<V>, RBlockingQueue<V>, RBlockingQueueAsync<V>, RBoundedBlockingQueueAsync<V>, RCollectionAsync<V>, RExpirable, RExpirableAsync, RObject, RObjectAsync, RQueue<V>, RQueueAsync<V>
All Known Implementing Classes:
RedissonBoundedBlockingQueue

public interface RBoundedBlockingQueue<V> extends RBlockingQueue<V>, RBoundedBlockingQueueAsync<V>
Distributed implementation of bounded BlockingQueue
Author:
Nikita Koksharov
  • Method Details

    • trySetCapacity

      boolean trySetCapacity(int capacity)
      Sets queue capacity only if it is not set before.
      Parameters:
      capacity - - queue capacity
      Returns:
      true if capacity set successfully false if capacity already set