Package com.exonum.binding.transaction
Class RawTransaction.Builder
- java.lang.Object
-
- com.exonum.binding.transaction.RawTransaction.Builder
-
- Enclosing class:
- RawTransaction
public abstract static class RawTransaction.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract RawTransaction
build()
Creates the RawTransaction instance with specified parameters.abstract RawTransaction.Builder
payload(byte[] payload)
Sets the payload of the transaction.abstract RawTransaction.Builder
serviceId(short serviceId)
Sets the identifier of the service this transaction belongs to.abstract RawTransaction.Builder
transactionId(short transactionId)
Sets the identifier of the transaction within a service.
-
-
-
Method Detail
-
serviceId
public abstract RawTransaction.Builder serviceId(short serviceId)
Sets the identifier of the service this transaction belongs to.
-
transactionId
public abstract RawTransaction.Builder transactionId(short transactionId)
Sets the identifier of the transaction within a service.
-
payload
public abstract RawTransaction.Builder payload(byte[] payload)
Sets the payload of the transaction.
-
build
public abstract RawTransaction build()
Creates the RawTransaction instance with specified parameters.
-
-