#include <userver/storages/postgres/notify.hpp>
RAII scope for receiving notifications.
Used for waiting for notifications on PostgreSQL connections. Created by calling storages::postgres::Cluster::Listen(). Exclusively holds a connection from a pool.
Non-copyable.
Definition at line 37 of file notify.hpp.
Public Member Functions | |
| NotifyScope (detail::ConnectionPtr conn, std::string_view channel, OptionalCommandControl cmd_ctl) | |
| NotifyScope (NotifyScope &&) noexcept | |
| NotifyScope & | operator= (NotifyScope &&) noexcept | 
| NotifyScope (const NotifyScope &)=delete | |
| NotifyScope & | operator= (const NotifyScope &)=delete | 
| Notification | WaitNotify (engine::Deadline deadline) | 
| Wait for notification on connection.  | |