Interface ConcurrentQueue.Handle<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long expiration()
      Time at which the element will expire
      boolean remove()
      Delete the element corresponding to this handle from the queue.
      V value()
      Return the value that corresponds to this handle.
    • Method Detail

      • value

        V value()
        Return the value that corresponds to this handle.
        Returns:
        the value
      • remove

        boolean remove()
        Delete the element corresponding to this handle from the queue. Takes constant time. Returns true if the removal succeeded, or false if it failed. which can occur if another thread has already called poll or remove on this element.
        Returns:
        if operation succeeded
      • expiration

        long expiration()
        Time at which the element will expire
        Returns:
        time in milliseconds since 1/1/70 when this item expires.