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 void
afterRecovery(boolean success, boolean delegated, String instance)
Indicate to the listener that recovery is over.void
beforeRecovery(boolean delegated, String instance)
Indicate to the listener that recovery for a specific instance is about to start.void
initPersistentTimerService(String target)
void
memberAdded(MemberEvent event)
void
memberRemoved(MemberEvent event)
void
postConstruct()
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
initPersistentTimerService
public void initPersistentTimerService(String target)
- Specified by:
initPersistentTimerService
in interfacePersistentTimerService
-
beforeRecovery
public void beforeRecovery(boolean delegated, String instance)
Description copied from interface:RecoveryEventListener
Indicate to the listener that recovery for a specific instance is about to start.- Specified by:
beforeRecovery
in 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:RecoveryEventListener
Indicate to the listener that recovery is over.- Specified by:
afterRecovery
in interfaceRecoveryEventListener
- Parameters:
success
-true
if 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:
memberAdded
in interfaceClusterListener
-
memberRemoved
public void memberRemoved(MemberEvent event)
- Specified by:
memberRemoved
in interfaceClusterListener
-
-