Trait/Object

io.scalac.amqp

Connection

Related Docs: object Connection | package amqp

Permalink

trait Connection extends AnyRef

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

Abstract Value Members

  1. abstract def consume(queue: String, prefetch: Int = 20, exclusive: Boolean = false): Publisher[Delivery]

    Permalink

    Creates queue Publisher.

    Creates queue Publisher.

    Publisher keeps track of all his subscribers so they can only have one active subscription. It also does necessary housekeeping related to the subscription life cycle. Every subscription has its own channel and is isolated from others. Returned instance is very lightweight and cheap to create.

    Keep in mind that some Reactive Streams implementations like Akka Streams do their own buffering. Messages delivered to the buffer are considered delivered.

    queue

    Name of the consumed queue.

    prefetch

    Number of unacknowledged messages in flight. It's beneficial to have this number higher than 1 due to improved throughput. Setting this number to high may increase memory usage - depending on average message size and speed of subscribers.

    exclusive

    If set to true, the consumer will be exclusive and ony this consumer can access the queue.

  2. abstract def exchangeBind(destination: String, source: String, routingKey: String, arguments: Map[String, String] = Map.empty): Future[BindOk]

    Permalink

    Bind an exchange to an exchange.

    Bind an exchange to an exchange.

    destination

    the name of the exchange to which messages flow across the binding

    source

    the name of the exchange from which messages flow across the binding

    routingKey

    the routine key to use for the binding

    arguments

    other properties (binding parameters)

  3. abstract def exchangeDeclare(exchange: Exchange): Future[DeclareOk]

    Permalink

    Declare an exchange.

    Declare an exchange. This invocation does nothing if exchange with identical parameters already exists.

  4. abstract def exchangeDeclarePassive(exchange: String): Future[DeclareOk]

    Permalink

    Declare an exchange passively; that is, check if the named exchange exists.

    Declare an exchange passively; that is, check if the named exchange exists.

    exchange

    the name of the exchange

  5. abstract def exchangeDelete(exchange: String, ifUnused: Boolean = false): Future[DeleteOk]

    Permalink

    Delete an exchange.

    Delete an exchange.

    exchange

    the name of the exchange

    ifUnused

    true to indicate that the exchange is only to be deleted if it is unused

  6. abstract def exchangeUnbind(destination: String, source: String, routingKey: String): Future[UnbindOk]

    Permalink

    Unbind an exchange from an exchange.

    Unbind an exchange from an exchange.

    destination

    the name of the exchange to which messages flow across the binding

    source

    the name of the exchange from which messages flow across the binding

    routingKey

    the routine key to use for the binding

  7. abstract def publish(exchange: String): Subscriber[Routed]

    Permalink

    Creates Subscriber that publishes Routed messages to the exchange.

    Creates Subscriber that publishes Routed messages to the exchange.

    exchange

    the name of the exchange

  8. abstract def publish(exchange: String, routingKey: String): Subscriber[Message]

    Permalink

    Creates exchange Subscriber with fixed routing key.

    Creates exchange Subscriber with fixed routing key.

    Each Message will be mapped to Routed with given routing key.

    exchange

    the name of the exchange

    routingKey

    the routing key for messages published via this Subscriber

  9. abstract def publishDirectly(queue: String): Subscriber[Message]

    Permalink

    Creates an Subscriber that publishes its messages to the Default Exchange with @param queue routing key.

    Creates an Subscriber that publishes its messages to the Default Exchange with @param queue routing key.

    See http://www.rabbitmq.com/tutorials/amqp-concepts.html

    queue

    the routing key for each message

  10. abstract def queueBind(queue: String, exchange: String, routingKey: String, arguments: Map[String, String] = Map.empty): Future[BindOk]

    Permalink

    Bind a queue to an exchange.

    Bind a queue to an exchange.

    queue

    the name of the queue

    exchange

    the name of the exchange

    routingKey

    the routine key to use for the binding

    arguments

    other properties (binding parameters)

  11. abstract def queueDeclare(): Future[Queue]

    Permalink

    Actively declare a server-named, exclusive, auto-delete, non-durable queue.

  12. abstract def queueDeclare(queue: Queue): Future[DeclareOk]

    Permalink

    Declare a queue.

    Declare a queue. This invocation does nothing if queue with identical parameters already exists.

  13. abstract def queueDeclarePassive(queue: String): Future[DeclareOk]

    Permalink

    Declare a queue passively; i.e., check if it exist.

    Declare a queue passively; i.e., check if it exist.

    queue

    the name of the queue

  14. abstract def queueDelete(queue: String, ifUnused: Boolean = false, ifEmpty: Boolean = false): Future[DeleteOk]

    Permalink

    Delete a queue.

    Delete a 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

  15. abstract def queuePurge(queue: String): Future[PurgeOk]

    Permalink

    Purges the contents of the given queue.

    Purges the contents of the given queue.

    queue

    the name of the queue

  16. abstract def queueUnbind(queue: String, exchange: String, routingKey: String): Future[UnbindOk]

    Permalink

    Unbind a queue from an exchange.

    Unbind a queue from an exchange.

    queue

    the name of the queue

    exchange

    the name of the exchange

    routingKey

    the routine key to use for the binding

  17. abstract def shutdown(): Future[Unit]

    Permalink

    Shutdowns underlying connection.

    Shutdowns underlying connection. Publishers and subscribers are terminated and notified via onError. This method waits for all close operations to complete.

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 notify(): Unit

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped