Class TransactionVerificationRequest
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class TransactionVerificationRequest extends SpecificRecordBase implements SpecificRecord
Make a request for verification of a ledger transaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TransactionVerificationRequest.Builder
RecordBuilder for TransactionVerificationRequest instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public Instant
timestamp
public HoldingIdentity
holdingIdentity
public ByteBuffer
transaction
public List<CordaPackageSummary>
cpkMetadata
public ExternalEventContext
flowExternalEventContext
-
Constructor Summary
Constructors Constructor Description TransactionVerificationRequest()
Default constructor. TransactionVerificationRequest(Instant timestamp, HoldingIdentity holdingIdentity, ByteBuffer transaction, List<CordaPackageSummary> cpkMetadata, ExternalEventContext flowExternalEventContext)
All-args constructor.
-
Method Summary
Modifier and Type Method Description Instant
getTimestamp()
Gets the value of the 'timestamp' field. void
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. HoldingIdentity
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. void
setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. ByteBuffer
getTransaction()
Gets the value of the 'transaction' field. void
setTransaction(ByteBuffer value)
Sets the value of the 'transaction' field. List<CordaPackageSummary>
getCpkMetadata()
Gets the value of the 'cpkMetadata' field. void
setCpkMetadata(List<CordaPackageSummary> value)
Sets the value of the 'cpkMetadata' field. ExternalEventContext
getFlowExternalEventContext()
Gets the value of the 'flowExternalEventContext' field. void
setFlowExternalEventContext(ExternalEventContext value)
Sets the value of the 'flowExternalEventContext' field. static Schema
getClassSchema()
static BinaryMessageEncoder<TransactionVerificationRequest>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<TransactionVerificationRequest>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<TransactionVerificationRequest>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this TransactionVerificationRequest to a ByteBuffer. static TransactionVerificationRequest
fromByteBuffer(ByteBuffer b)
Deserializes a TransactionVerificationRequest from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static TransactionVerificationRequest.Builder
newBuilder()
Creates a new TransactionVerificationRequest RecordBuilder. static TransactionVerificationRequest.Builder
newBuilder(TransactionVerificationRequest.Builder other)
Creates a new TransactionVerificationRequest RecordBuilder by copying an existing Builder. static TransactionVerificationRequest.Builder
newBuilder(TransactionVerificationRequest other)
Creates a new TransactionVerificationRequest RecordBuilder by copying an existing TransactionVerificationRequest instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TransactionVerificationRequest
TransactionVerificationRequest()
Default constructor.
-
TransactionVerificationRequest
TransactionVerificationRequest(Instant timestamp, HoldingIdentity holdingIdentity, ByteBuffer transaction, List<CordaPackageSummary> cpkMetadata, ExternalEventContext flowExternalEventContext)
All-args constructor.- Parameters:
timestamp
- Time (java.time.Instant) in milliseconds when the record was created.holdingIdentity
- The holding identity of the user making the request.transaction
- The serialized transactioncpkMetadata
- Metadata of Corda packages.flowExternalEventContext
- The context of the external event that this request was sent from.
-
-
Method Detail
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field.
-
setTimestamp
void setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time (java.time.Instant) in milliseconds when the record was created.
- Parameters:
value
- the value to set.
-
getHoldingIdentity
HoldingIdentity getHoldingIdentity()
Gets the value of the 'holdingIdentity' field.
-
setHoldingIdentity
void setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. The holding identity of the user making the request.
- Parameters:
value
- the value to set.
-
getTransaction
ByteBuffer getTransaction()
Gets the value of the 'transaction' field.
-
setTransaction
void setTransaction(ByteBuffer value)
Sets the value of the 'transaction' field. The serialized transaction
- Parameters:
value
- the value to set.
-
getCpkMetadata
List<CordaPackageSummary> getCpkMetadata()
Gets the value of the 'cpkMetadata' field.
-
setCpkMetadata
void setCpkMetadata(List<CordaPackageSummary> value)
Sets the value of the 'cpkMetadata' field. Metadata of Corda packages.
- Parameters:
value
- the value to set.
-
getFlowExternalEventContext
ExternalEventContext getFlowExternalEventContext()
Gets the value of the 'flowExternalEventContext' field.
-
setFlowExternalEventContext
void setFlowExternalEventContext(ExternalEventContext value)
Sets the value of the 'flowExternalEventContext' field. The context of the external event that this request was sent from.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<TransactionVerificationRequest> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<TransactionVerificationRequest> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<TransactionVerificationRequest> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this TransactionVerificationRequest to a ByteBuffer.
-
fromByteBuffer
static TransactionVerificationRequest fromByteBuffer(ByteBuffer b)
Deserializes a TransactionVerificationRequest from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
getConversion
Conversion<out Object> getConversion(int field)
-
newBuilder
static TransactionVerificationRequest.Builder newBuilder()
Creates a new TransactionVerificationRequest RecordBuilder.
-
newBuilder
static TransactionVerificationRequest.Builder newBuilder(TransactionVerificationRequest.Builder other)
Creates a new TransactionVerificationRequest RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static TransactionVerificationRequest.Builder newBuilder(TransactionVerificationRequest other)
Creates a new TransactionVerificationRequest RecordBuilder by copying an existing TransactionVerificationRequest instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-