Class CachedTransactionStorage
java.lang.Object
org.exoplatform.wallet.storage.TransactionStorage
org.exoplatform.wallet.storage.cached.CachedTransactionStorage
-
Constructor Summary
ConstructorsConstructorDescriptionCachedTransactionStorage(org.exoplatform.services.cache.CacheService cacheService, org.exoplatform.services.listener.ListenerService listenerService, WalletTransactionDAO walletTransactionDAO) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.exoplatform.wallet.model.transaction.TransactionDetailgetTransactionByHash(String hash) Retrieve aTransactionDetailidentified by its blockchain hashvoidsaveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail) Saves a decoded transaction detail in internal databaseMethods inherited from class org.exoplatform.wallet.storage.TransactionStorage
countContractPendingTransactionsSent, countContractPendingTransactionsToSend, countPendingTransactionAsSender, countPendingTransactionSent, countPendingTransactionsWithSameNonce, countReceivedContractAmount, countSentContractAmount, countTransactions, getContractTransactions, getMaxUsedNonce, getPendingEtherTransactions, getPendingTransactionByHash, getPendingTransactionsWithSameNonce, getPendingWalletTransactionsNotSent, getPendingWalletTransactionsSent, getTransactions, getTransactionsToSend, getWalletTransactions
-
Constructor Details
-
CachedTransactionStorage
public CachedTransactionStorage(org.exoplatform.services.cache.CacheService cacheService, org.exoplatform.services.listener.ListenerService listenerService, WalletTransactionDAO walletTransactionDAO)
-
-
Method Details
-
getTransactionByHash
Description copied from class:TransactionStorageRetrieve aTransactionDetailidentified by its blockchain hash- Overrides:
getTransactionByHashin classTransactionStorage- Parameters:
hash- blockchain transaction hash- Returns:
TransactionDetail
-
saveTransactionDetail
public void saveTransactionDetail(org.exoplatform.wallet.model.transaction.TransactionDetail transactionDetail) Description copied from class:TransactionStorageSaves a decoded transaction detail in internal database- Overrides:
saveTransactionDetailin classTransactionStorage- Parameters:
transactionDetail- decoded transaction detail
-
clearCache
public void clearCache()
-