Class

org.elasticmq.actor.queue.MessageQueue

SimpleMessageQueue

Related Doc: package MessageQueue

Permalink

class SimpleMessageQueue extends MessageQueue

A "simple" straightforward message queue. The queue represents the common SQS behaviour

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleMessageQueue
  2. MessageQueue
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleMessageQueue()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +=(message: InternalMessage): Unit

    Permalink

    Add a message onto the queue.

    Add a message onto the queue. Note that this doesn't do any deduplication, that should've happened in an earlier step.

    message

    The message to add onto the queue

    Definition Classes
    SimpleMessageQueueMessageQueue
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def byId: Map[String, InternalMessage]

    Permalink

    Get the messages indexed by their unique id

    Get the messages indexed by their unique id

    returns

    The messages indexed by their id

    Definition Classes
    SimpleMessageQueueMessageQueue
  7. def clear(): Unit

    Permalink

    Drop all messages on the queue

    Drop all messages on the queue

    Definition Classes
    SimpleMessageQueueMessageQueue
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def dequeue(count: Int, deliveryTime: Long): List[InternalMessage]

    Permalink

    Dequeues count messages from the queue

    Dequeues count messages from the queue

    count

    The number of messages to dequeue from the queue

    deliveryTime

    The timestamp from which messages should be available (usually, this is the current millis since epoch. It is useful to pass in a special value during the tests however.)

    returns

    The dequeued messages, if any

    Definition Classes
    SimpleMessageQueueMessageQueue
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def filterNot(p: (InternalMessage) ⇒ Boolean): MessageQueue

    Permalink

    Return a message queue where all the messages on the queue do not match the given predicate function

    Return a message queue where all the messages on the queue do not match the given predicate function

    p

    The predicate function to filter the message by. Any message that does not match the predicate will be retained on the new queue

    returns

    The new message queue

    Definition Classes
    SimpleMessageQueueMessageQueue
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val messageQueue: PriorityQueue[InternalMessage]

    Permalink
    Attributes
    protected
  18. val messagesById: HashMap[String, InternalMessage]

    Permalink
    Attributes
    protected
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def nextVisibleMessage(priorityQueue: PriorityQueue[InternalMessage], deliveryTime: Long, accBatch: List[InternalMessage], accMessage: Seq[InternalMessage] = Seq.empty): Option[InternalMessage]

    Permalink

    Get the next available message on the given queue

    Get the next available message on the given queue

    priorityQueue

    The queue for which to get the next available message. It's assumed the messages on this queue all belong to the same message group.

    deliveryTime

    The timestamp from which messages should be available

    accBatch

    An accumulator holding the messages that have already been retrieved.

    accMessage

    An accumulator holding the messages that have been dequeued from the priority queue and cannot be delivered. These messages should be put back on the queue before returning to the caller

    Attributes
    protected
    Definition Classes
    MessageQueue
    Annotations
    @tailrec()
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def remove(messageId: String): Unit

    Permalink

    Remove the message with the given id

    Remove the message with the given id

    messageId

    The id of the message to remove

    Definition Classes
    SimpleMessageQueueMessageQueue
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MessageQueue

Inherited from AnyRef

Inherited from Any

Ungrouped