Class/Object

akka.stream.alpakka.ironmq

IronMqClient

Related Docs: object IronMqClient | package ironmq

Permalink

class IronMqClient extends AnyRef

An IronMq client based on Akka-http.

This client provide a subset of the operation you can do by the IronMQ protocol. It is not intended to be used by the final user but as internal API. Still it could be used to create/list/delete queues if needed.

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

Instance Constructors

  1. new IronMqClient(settings: IronMqSettings)(implicit actorSystem: ActorSystem, materializer: Materializer)

    Permalink

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 clearMessages(queueName: Name)(implicit ec: ExecutionContext): Future[Unit]

    Permalink

    Purge a queue, removing all messages from it.

    Purge a queue, removing all messages from it.

    WARNING: It will delete ALL messages from a Queue.

    queueName

    The queue to be purged.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def createQueue(name: Name)(implicit ec: ExecutionContext): Future[Queue]

    Permalink

    Create a new queue, with default parameters, with the given name.

  8. def deleteMessages(queueName: Name, reservations: Reservation*)(implicit ec: ExecutionContext): Future[Unit]

    Permalink

    This will delete previously reserved messages.

    This will delete previously reserved messages.

    queueName

    The queue to delete messages from.

    reservations

    The reservations to be used to delete messages. They should not be already expired.

  9. def deleteQueue(name: Name)(implicit ec: ExecutionContext): Future[Done]

    Permalink

    Delete the queue with the given name.

  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. def listQueues(prefix: Option[String] = None, from: Option[Name] = None, noOfQueues: Int = 50)(implicit ec: ExecutionContext): Future[Traversable[Name]]

    Permalink

    List the available queues.

    List the available queues.

    It support pagination by providing the last queue name and number of desired results. It can also filter by queue name prefix.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def peekMessages(queueName: Name, numberOfMessages: Int = 1)(implicit ec: ExecutionContext): Future[Iterable[Message]]

    Permalink

    It will fetch a number of messages without reserving or deleting them.

    It will fetch a number of messages without reserving or deleting them. It is mainly ussed to monitor or inspect a queue.

    queueName

    The name of the queue to fetch the messages from.

    numberOfMessages

    The maximum number of the messages to fetch.

  21. def pullMessages(queueName: Name, noOfMessages: Int = 1, watch: Duration = Duration.Undefined)(implicit ec: ExecutionContext): Future[Iterable[Message]]

    Permalink

    Consume a number of messages from the given queue.

    Consume a number of messages from the given queue.

    The messages will not be available anymore to any other consumer. They are deleted immediately after being fetched.

    queueName

    The name of the queue to consume from.

    noOfMessages

    The maximum number of messages to consume (It will return a number of messages up to this number)

    watch

    The amount of time the consumer will wait for more messages to be consumed.

  22. def pushMessages(queueName: Name, messages: PushMessage*)(implicit ec: ExecutionContext): Future[Ids]

    Permalink

    Produce the given messages to the queue with the given name.

    Produce the given messages to the queue with the given name. Return the ids ot the produced messages.

  23. def releaseMessage(queueName: Name, reservation: Reservation, delay: FiniteDuration = Duration.Zero)(implicit ec: ExecutionContext): Future[Unit]

    Permalink

    This will release a previously reserved message.

    This will release a previously reserved message.

    queueName

    The queue to relesse messages from.

    reservation

    The reservations to be used to release messages. It should not be already expired.

    delay

    How much time before the message will be available to other consumers.

  24. def reserveMessages(queueName: Name, noOfMessages: Int = 1, timeout: Duration = Duration.Undefined, watch: Duration = Duration.Undefined)(implicit ec: ExecutionContext): Future[Iterable[ReservedMessage]]

    Permalink

    Reserve a number of messages from the given queue.

    Reserve a number of messages from the given queue.

    When a message has been reserved, it is not available to other consumer for the time specified by the timeout argument.

    queueName

    The name of the queue to reserve from.

    noOfMessages

    The maximum number of messages to reserve (It will return a number of messages up to this number)

    timeout

    The reservation timeout. After this time the reserved message is put back in the queue.

    watch

    The amount of time the consumer will wait for more messages to be reserved.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def touchMessage(queueName: Name, reservation: Reservation, timeout: Duration = Duration.Undefined)(implicit ec: ExecutionContext): Future[Reservation]

    Permalink

    This will renew a nearly expired reservation.

    This will renew a nearly expired reservation. It is used to extend the reservation period.

    queueName

    The name of the queue to renew the reservation from.

    reservation

    The Reservation to be renewed.

    timeout

    The new reservation timeout.

  28. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped