Interface ITransactionStorageProvider
-
@ProviderType public interface ITransactionStorageProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()This method can be called by clients to ensure that the implementation completes any pending storage tasks.java.util.List<TransactionSummary>getAllTransactionSummaries(ResourceResolver resourceResolver)Returns a list of persistedTransactionSummaryof all servers linked to the current server.TransactionSummarygetTransactionSummary(ResourceResolver resourceResolver)Returns the persistedTransactionSummarycorresponding to the current server.voidresetTransactionCount(ResourceResolver resourceResolver)Resets the transaction-summary counts for all servers linked to the current server.voidstoreTransaction(PersistentTransactionRecord record)Store thePersistentTransactionRecordrecordto an underlying storage layer.
-
-
-
Method Detail
-
storeTransaction
void storeTransaction(PersistentTransactionRecord record) throws TransactionException
Store thePersistentTransactionRecordrecordto an underlying storage layer.- Parameters:
record- APersistentTransactionRecordwhich contains the Transaction information that needs to be persisted.- Throws:
TransactionException
-
flush
void flush() throws TransactionExceptionThis method can be called by clients to ensure that the implementation completes any pending storage tasks.- Throws:
TransactionException
-
getTransactionSummary
TransactionSummary getTransactionSummary(ResourceResolver resourceResolver) throws TransactionException
Returns the persistedTransactionSummarycorresponding to the current server.- Parameters:
resourceResolver- The caller'sResourceResolver- Returns:
- A the
TransactionSummarycorresponding to the current server. - Throws:
TransactionException
-
getAllTransactionSummaries
java.util.List<TransactionSummary> getAllTransactionSummaries(ResourceResolver resourceResolver) throws TransactionException
Returns a list of persistedTransactionSummaryof all servers linked to the current server.- Parameters:
resourceResolver- The caller'sResourceResolver- Returns:
- A list of
TransactionSummaryfor all linked servers. - Throws:
TransactionException
-
resetTransactionCount
void resetTransactionCount(ResourceResolver resourceResolver) throws TransactionException
Resets the transaction-summary counts for all servers linked to the current server.- Parameters:
resourceResolver- The caller'sResourceResolver- Throws:
TransactionException
-
-