Notification Driver

class oslo_messaging.notify.messaging.MessagingDriver(conf, topics, transport, version=1.0)

Send notifications using the 1.0 message format.

This driver sends notifications over the configured messaging transport, but without any message envelope (also known as message format 1.0).

This driver should only be used in cases where there are existing consumers deployed which do not support the 2.0 message format.

class oslo_messaging.notify.messaging.MessagingV2Driver(conf, **kwargs)

Send notifications using the 2.0 message format.

class oslo_messaging.notify.notifier.Driver(conf, topics, transport)

Base driver for Notifications

notify(ctxt, msg, priority, retry)

send a single notification with a specific priority

Parameters:
  • ctxt – current request context
  • msg (str) – message to be sent
  • priority (str) – priority of the message
  • retry (int) – an connection retries configuration None or -1 means to retry forever 0 means no retry N means N retries

Previous topic

Notifier

Next topic

Notification Listener

Project Source

This Page