Packages

c

zio.amqp

Channel

class Channel extends AnyRef

Thread-safe access to a RabbitMQ Channel

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ack(deliveryTag: DeliveryTag, multiple: Boolean = false): ZIO[Any, Throwable, Unit]
  5. def ackMany(deliveryTags: Seq[DeliveryTag]): ZIO[Any, Throwable, Unit]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def basicQos(count: Int, global: Boolean = false): ZIO[Any, Throwable, Unit]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. def consume(queue: QueueName, consumerTag: ConsumerTag, autoAck: Boolean = false): ZStream[Any, Throwable, Delivery]

    Consume a stream of messages from a queue

    Consume a stream of messages from a queue

    When the stream is completed, the AMQP consumption is cancelled

  10. def consumerCount(queue: QueueName): ZIO[Any, Throwable, Long]

    Returns the number of consumers on a queue.

    Returns the number of consumers on a queue. This method assumes the queue exists. If it doesn't, the channel will be closed with an exception.

    queue

    the name of the queue

    returns

    the number of consumers

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def exchangeDeclare(exchange: ExchangeName, type: ExchangeType, durable: Boolean = false, autoDelete: Boolean = false, internal: Boolean = false, arguments: Map[String, AnyRef] = Map.empty): ZIO[Any, Throwable, Unit]
  14. def exchangeDelete(exchange: ExchangeName, ifUnused: Boolean = false): ZIO[Any, Throwable, Unit]
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def messageCount(queue: QueueName): ZIO[Any, Throwable, Long]

    Returns the number of messages in a queue ready to be delivered to consumers.

    Returns the number of messages in a queue ready to be delivered to consumers. This method assumes the queue exists. If it doesn't, the channels will be closed with an exception.

    queue

    the name of the queue

    returns

    the number of messages in ready state

  19. def nack(deliveryTag: DeliveryTag, requeue: Boolean = false, multiple: Boolean = false): ZIO[Any, Throwable, Unit]
  20. def nackMany(deliveryTags: Seq[DeliveryTag], requeue: Boolean = false): ZIO[Any, Throwable, Unit]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. def publish(exchange: ExchangeName, body: Array[Byte], routingKey: RoutingKey = zio.prelude.Newtype.unsafeWrap[zio.amqp.model.RoutingKey.type](zio.amqp.model.`package`.RoutingKey)(""), mandatory: Boolean = false, immediate: Boolean = false, props: BasicProperties = new AMQP.BasicProperties()): ZIO[Any, Throwable, Unit]
  25. def purgeQueue(queue: QueueName): ZIO[Any, Throwable, PurgeOk]

    Purges the contents of the given queue.

    Purges the contents of the given queue.

    queue

    the name of the queue

    returns

    purge-confirm if the purge was executed successfully

  26. def queueBind(queue: QueueName, exchange: ExchangeName, routingKey: RoutingKey, arguments: Map[String, AnyRef] = Map.empty): ZIO[Any, Throwable, Unit]
  27. def queueDeclare(queue: QueueName, durable: Boolean = false, exclusive: Boolean = false, autoDelete: Boolean = false, arguments: Map[String, AnyRef] = Map.empty): ZIO[Any, Throwable, String]

    Declare a queue

    Declare a queue

    queue

    Name of the queue. If left empty, a random queue name is used

    durable

    True if we are declaring a durable queue (the queue will survive a server restart)

    exclusive

    Exclusive to this connection

    autoDelete

    True if we are declaring an autodelete queue (server will delete it when no longer in use)

    returns

    The name of the created queue

  28. def queueDeclarePassive(queue: QueueName): ZIO[Any, Throwable, DeclareOk]

    Check if a queue exists

    Check if a queue exists

    queue

    Name of the queue.

    returns

    a declaration-confirm method to indicate the queue exists

  29. def queueDelete(queue: QueueName, ifUnused: Boolean = false, ifEmpty: Boolean = false): ZIO[Any, Throwable, Unit]

    Delete a queue

    Delete a queue

    queue

    Name of the queue

    ifUnused

    True if the queue should be deleted only if not in use

    ifEmpty

    True if the queue should be deleted only if empty

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped