Class LoomPriorityQueue<E>

java.lang.Object
com.loomcache.client.LoomPriorityQueue<E>

public final class LoomPriorityQueue<E> extends Object
Client-side handle to a distributed priority queue stored in the cluster.

Elements are dequeued in descending numeric priority order; elements with equal priority are returned in FIFO order. Use offer(Object, int) to specify an explicit priority, or offer(Object) to let the server assign a default. Obtain instances via LoomClient.getPriorityQueue.

  • Method Details

    • offer

      public boolean offer(E element, int priority)
    • offer

      public boolean offer(E element)
    • poll

      public @Nullable E poll()
    • peek

      public @Nullable E peek()
    • size

      public long size()
    • clear

      public void clear()