
org.avaje.datasource.DataSourceAlert Maven / Gradle / Ivy
package org.avaje.datasource;
/**
* Listener for notifications about the DataSource such as when the DataSource
* goes down, up or gets close to it's maximum size.
*
* The intention is to send email notifications to an administrator (or similar)
* when these events occur on the DataSource.
*
*/
public interface DataSourceAlert {
/**
* Send an alert to say the dataSource is back up.
*/
void dataSourceUp(String dataSourceName);
/**
* Send an alert to say the dataSource is down.
*/
void dataSourceDown(String dataSourceName);
/**
* Send an alert to say the dataSource is getting close to its max size.
*/
void dataSourceWarning(String subject, String msg);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy