public interface RecoverableResource
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the resource for shutdown.
|
java.lang.String |
getName()
Gets the name of the resource.
|
boolean |
isClosed()
Tests if the resource is closed.
|
boolean |
isSameRM(RecoverableResource res)
Tests if a resource is the same as another one.
|
void |
recover()
Instructs the resource to recover.
|
void |
setRecoveryService(RecoveryService recoveryService)
Initializes this resource with the recovery service.
|
void setRecoveryService(RecoveryService recoveryService) throws ResourceException
recoveryService - The recovery service. This instance
can be used by the resource to ask recovery from the
transaction engine.ResourceException - On errors.void close()
throws ResourceException
ResourceExceptionjava.lang.String getName()
boolean isSameRM(RecoverableResource res) throws ResourceException
ResourceExceptionboolean isClosed()
void recover()
Copyright © 2018. All Rights Reserved.