Interface RDelayedQueue<V>

Type Parameters:
V - value type
All Superinterfaces:
Collection<V>, Iterable<V>, Queue<V>, RCollectionAsync<V>, RDestroyable, RExpirable, RExpirableAsync, RObject, RObjectAsync, RQueue<V>, RQueueAsync<V>
All Known Implementing Classes:
RedissonDelayedQueue

public interface RDelayedQueue<V> extends RQueue<V>, RDestroyable
Distributed implementation of delayed queue.
Author:
Nikita Koksharov
  • Method Details

    • offer

      void offer(V e, long delay, TimeUnit timeUnit)
      Inserts element into this queue with specified transfer delay to destination queue.
      Parameters:
      e - the element to add
      delay - for transition
      timeUnit - for delay
    • offerAsync

      RFuture<Void> offerAsync(V e, long delay, TimeUnit timeUnit)
      Inserts element into this queue with specified transfer delay to destination queue.
      Parameters:
      e - the element to add
      delay - for transition
      timeUnit - for delay
      Returns:
      void