com.atomikos.icatch
Interface RecoveryService

All Known Implementing Classes:
TransactionServiceImp

public interface RecoveryService

A handle to the TM that resources can use to recover.


Method Summary
 String getName()
          Get the transaction service's unique name.
 void recover()
          Ask the TM to recover.
 

Method Detail

recover

void recover()
Ask the TM to recover. Resources should call this method whenever recovery is needed. The earliest time at which resources can call this method is when setRecoveryService is called on the resource. Note: resources that are registered before the TM starts up will not need to call this method. On the other hand, resources that are registered when the transaction service is already running should use this method to trigger recovery. It is up to the implementation of the resource to determine whether this is desirable.


getName

String getName()
Get the transaction service's unique name. Resources can use this name to determine what resource transactions need to be considered for recovery by this transaction service.

Returns:
String The name of the TM.


Copyright © 2011. All Rights Reserved.