public abstract class TransactionalAlarmListener extends java.lang.Object implements AlarmListener
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);
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
TransactionalAlarmListener() |
Modifier and Type | Method and Description |
---|---|
void |
handleAlarm(AlarmEntry entry)
Hibernate transactionnal implementation of
AlarmListener.handleAlarm(AlarmEntry) . |
abstract void |
handleTransactionalAlarm(AlarmEntry entry)
Method to be implemented by subclass.
|
public static final java.lang.String REVISION
public abstract void handleTransactionalAlarm(AlarmEntry entry)
Invoked when an alarm is triggered.
entry
- the AlarmEntry which has been triggered.public final void handleAlarm(AlarmEntry entry)
AlarmListener.handleAlarm(AlarmEntry)
.handleAlarm
in interface AlarmListener
entry
- the AlarmEntry which has been triggered.Copyright © 2001-2010 Jalios SA. All Rights Reserved.