Class DatabaseEJBTimerService
- java.lang.Object
-
- org.glassfish.ejb.persistent.timer.DatabaseEJBTimerService
-
- All Implemented Interfaces:
PersistentTimerService,RecoveryEventListener,ClusterListener,org.glassfish.hk2.api.PostConstruct
@Service public class DatabaseEJBTimerService extends Object implements PersistentTimerService, RecoveryEventListener, org.glassfish.hk2.api.PostConstruct, ClusterListener
-
-
Constructor Summary
Constructors Constructor Description DatabaseEJBTimerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterRecovery(boolean success, boolean delegated, String instance)Indicate to the listener that recovery is over.voidbeforeRecovery(boolean delegated, String instance)Indicate to the listener that recovery for a specific instance is about to start.voidinitPersistentTimerService(String target)voidmemberAdded(MemberEvent event)voidmemberRemoved(MemberEvent event)voidpostConstruct()
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
initPersistentTimerService
public void initPersistentTimerService(String target)
- Specified by:
initPersistentTimerServicein interfacePersistentTimerService
-
beforeRecovery
public void beforeRecovery(boolean delegated, String instance)Description copied from interface:RecoveryEventListenerIndicate to the listener that recovery for a specific instance is about to start.- Specified by:
beforeRecoveryin interfaceRecoveryEventListener- Parameters:
delegated- identifies whether it is part of a delegated transaction recoveryinstance- the instance name for which transaction recovery is performed, null if unknown
-
afterRecovery
public void afterRecovery(boolean success, boolean delegated, String instance)Description copied from interface:RecoveryEventListenerIndicate to the listener that recovery is over.- Specified by:
afterRecoveryin interfaceRecoveryEventListener- Parameters:
success-trueif the recovery operation finished successfullydelegated- identifies whether it is part of a delegated transaction recoveryinstance- the instance name for which transaction recovery is performed, null if unknown
-
memberAdded
public void memberAdded(MemberEvent event)
- Specified by:
memberAddedin interfaceClusterListener
-
memberRemoved
public void memberRemoved(MemberEvent event)
- Specified by:
memberRemovedin interfaceClusterListener
-
-