Package com.jalios.jcms.db
Class TransactionalAlarmListener
- java.lang.Object
-
- com.jalios.jcms.db.TransactionalAlarmListener
-
- All Implemented Interfaces:
AlarmListener
- Direct Known Subclasses:
AccessTokenExpiringReminderAlarmListener
,AccessTokenPurgeAlarmListener
,AlertPurgeAlarmListener
,ApplicationInstallCountAlarmListener
,AuthenticationCookiePurgeAlarmListener
,FileProcessorPostponedAlarmListener
,MonitoringManager
,PstatusAlarmListener
,SendActivationMailAlarmListener
,WFExpressAlarmListener
,WFReminderAlarmListener
public abstract class TransactionalAlarmListener extends java.lang.Object implements AlarmListener
Abstract class to use for Alarms that may perform Hibernate read or write access.Example :
AlarmListener myAlarmListener = new TransactionalAlarmListener() { public void handleTransactionalAlarm(AlarmEntry entry) { // Any task reading or writing in hibernate } }; // Schedule alarm every 10 minutes Channel.getChannel().getCommonAlarmManager("MyAlarmManager").addAlarm(10, true, myAlarmListener);
- Since:
- jcms-6.0
-
-
Constructor Summary
Constructors Constructor Description TransactionalAlarmListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
handleAlarm(AlarmEntry entry)
Hibernate transactionnal implementation ofAlarmListener.handleAlarm(AlarmEntry)
.abstract void
handleTransactionalAlarm(AlarmEntry entry)
Method to be implemented by subclass.
-
-
-
Method Detail
-
handleTransactionalAlarm
public abstract void handleTransactionalAlarm(AlarmEntry entry)
Method to be implemented by subclass.Invoked when an alarm is triggered.
- Parameters:
entry
- the AlarmEntry which has been triggered.
-
handleAlarm
public final void handleAlarm(AlarmEntry entry)
Hibernate transactionnal implementation ofAlarmListener.handleAlarm(AlarmEntry)
.- Specified by:
handleAlarm
in interfaceAlarmListener
- Parameters:
entry
- the AlarmEntry which has been triggered.
-
-