#include <notification.hxx>
pqxx::notification_receiver::notification_receiver |
( |
connection_base & |
c, |
|
|
const PGSTD::string & |
channel |
|
) |
| |
Register the receiver with a connection.
- Parameters
-
c | Connnection to operate on. |
channel | Name of the notification to listen for. |
virtual pqxx::notification_receiver::~notification_receiver |
( |
| ) |
|
|
virtual |
const PGSTD::string& pqxx::notification_receiver::channel |
( |
| ) |
const |
|
inline |
The channel that this receiver listens on.
virtual void pqxx::notification_receiver::operator() |
( |
const PGSTD::string & |
payload, |
|
|
int |
backend_pid |
|
) |
| |
|
pure virtual |
Overridable: action to invoke when notification arrives.
- Parameters
-
payload | On PostgreSQL 9.0 or later, an optional string that may have been passed to the NOTIFY command. |
backend_pid | Process ID of the database backend process that served our connection when the notification arrived. The actual process ID behind the connection may have changed by the time this method is called. |
Implemented in pqxx::internal::notify_listener_forwarder.
PGSTD::string pqxx::notification_receiver::m_channel |
|
private |
The documentation for this class was generated from the following file: