@Service public class DatabaseEJBTimerService extends Object implements PersistentTimerService, RecoveryEventListener, org.glassfish.hk2.api.PostConstruct, ClusterListener
Constructor and Description |
---|
DatabaseEJBTimerService() |
Modifier and Type | Method and 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() |
public void postConstruct()
postConstruct
in interface org.glassfish.hk2.api.PostConstruct
public void initPersistentTimerService(String target)
initPersistentTimerService
in interface PersistentTimerService
public void beforeRecovery(boolean delegated, String instance)
RecoveryEventListener
beforeRecovery
in interface RecoveryEventListener
delegated
- identifies whether it is part of a delegated transaction recoveryinstance
- the instance name for which transaction recovery is performed, null if unknownpublic void afterRecovery(boolean success, boolean delegated, String instance)
RecoveryEventListener
afterRecovery
in interface RecoveryEventListener
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 unknownpublic void memberAdded(MemberEvent event)
memberAdded
in interface ClusterListener
public void memberRemoved(MemberEvent event)
memberRemoved
in interface ClusterListener
Copyright © 2018. All rights reserved.