public abstract class NotificationListener extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NotificationListener.Configuration |
| Constructor and Description |
|---|
NotificationListener() |
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
void |
run(BooleanSupplier runningSupplier) |
protected abstract Connection getConnection() throws SQLException
SQLException - when database connection failedprotected void closeConnection(Connection connection) throws SQLException
connection - database connectionSQLException - when error occurredprotected abstract void receiveNotification(org.postgresql.PGNotification notification)
notification - notificationpublic void run(BooleanSupplier runningSupplier)
Copyright © 2020. All rights reserved.