Trait/Object

org.elasticmq.actor.queue

MessageQueue

Related Docs: object MessageQueue | package queue

Permalink

sealed trait MessageQueue extends AnyRef

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

Abstract Value Members

  1. abstract 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

  2. abstract 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

  3. abstract def clear(): Unit

    Permalink

    Drop all messages on the queue

  4. abstract 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

  5. abstract 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

  6. abstract 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

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. 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
    Annotations
    @tailrec()
  14. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped