public abstract class NotificationListener extends Object
| Constructor and Description |
|---|
NotificationListener() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
closeConnection(Connection connection)
Close database connection and make sure it is not reused by anyone else
(e.g.
|
protected abstract Connection |
getConnection()
Obtain a new database connection.
|
protected abstract void |
receiveNotification(org.postgresql.PGNotification notification)
Process incoming notification.
|
protected void |
run() |
void |
setChannels(String... channels) |
public void setChannels(String... channels)
protected abstract Connection getConnection() throws SQLException
SQLException - when database connection failedprotected abstract void closeConnection(Connection connection) throws SQLException
connection - database connectionSQLException - when error occurredprotected abstract void receiveNotification(org.postgresql.PGNotification notification)
notification - notificationprotected void run()
Copyright © 2020. All rights reserved.