public class CommitMarkableResourceRecordRecoveryModule extends Object implements RecoveryModule
Constructor and Description |
---|
CommitMarkableResourceRecordRecoveryModule() |
Modifier and Type | Method and Description |
---|---|
void |
notifyOfCompletedBranch(String commitMarkableResourceJndiName,
Xid xid) |
void |
periodicWorkFirstPass()
Called by the RecoveryManager at start up, and then
PERIODIC_RECOVERY_PERIOD seconds after the completion, for all RecoveryModules,
of the second pass
|
void |
periodicWorkSecondPass()
Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds
after the completion of the first pass
|
boolean |
wasCommitted(String jndiName,
Xid xid)
Can only be called after the first phase has executed
|
public CommitMarkableResourceRecordRecoveryModule() throws NamingException, ObjectStoreException
NamingException
ObjectStoreException
public void notifyOfCompletedBranch(String commitMarkableResourceJndiName, Xid xid)
public void periodicWorkFirstPass()
RecoveryModule
periodicWorkFirstPass
in interface RecoveryModule
public void periodicWorkSecondPass()
RecoveryModule
periodicWorkSecondPass
in interface RecoveryModule
public boolean wasCommitted(String jndiName, Xid xid) throws ObjectStoreException
xid
- ObjectStoreException
- if the resource manager was offlineCopyright © 2021 JBoss by Red Hat. All rights reserved.