Package com.exonum.binding.service
Interface TransactionConverter
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TransactionConverter
A converter of a raw Exonum transaction, which contains transaction data, into an executable transaction.
-
-
Method Summary
Modifier and Type Method Description Transaction
toTransaction(RawTransaction rawTransaction)
Converts an Exonum raw transaction to an executable transaction of some service.
-
-
-
Method Detail
-
toTransaction
Transaction toTransaction(RawTransaction rawTransaction)
Converts an Exonum raw transaction to an executable transaction of some service.- Parameters:
rawTransaction
- a raw transaction to be converted- Returns:
- an executable transaction of some service
- Throws:
IllegalArgumentException
- if the raw transaction is malformed, or a transaction of an unknown serviceNullPointerException
- if the raw transaction is null
-
-