Class UniquenessCheckRequestAvro
-
- 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 UniquenessCheckRequestAvro extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
UniquenessCheckRequestAvro.Builder
RecordBuilder for UniquenessCheckRequestAvro instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public HoldingIdentity
holdingIdentity
public ExternalEventContext
flowExternalEventContext
public String
txId
public String
originatorX500Name
public List<String>
inputStates
public List<String>
referenceStates
public int
numOutputStates
public Instant
timeWindowLowerBound
public Instant
timeWindowUpperBound
-
Constructor Summary
Constructors Constructor Description UniquenessCheckRequestAvro()
Default constructor. UniquenessCheckRequestAvro(HoldingIdentity holdingIdentity, ExternalEventContext flowExternalEventContext, String txId, String originatorX500Name, List<String> inputStates, List<String> referenceStates, Integer numOutputStates, Instant timeWindowLowerBound, Instant timeWindowUpperBound)
All-args constructor.
-
Method Summary
Modifier and Type Method Description HoldingIdentity
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. void
setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. ExternalEventContext
getFlowExternalEventContext()
Gets the value of the 'flowExternalEventContext' field. void
setFlowExternalEventContext(ExternalEventContext value)
Sets the value of the 'flowExternalEventContext' field. String
getTxId()
Gets the value of the 'txId' field. void
setTxId(String value)
Sets the value of the 'txId' field. String
getOriginatorX500Name()
Gets the value of the 'originatorX500Name' field. void
setOriginatorX500Name(String value)
Sets the value of the 'originatorX500Name' field. List<String>
getInputStates()
Gets the value of the 'inputStates' field. void
setInputStates(List<String> value)
Sets the value of the 'inputStates' field. List<String>
getReferenceStates()
Gets the value of the 'referenceStates' field. void
setReferenceStates(List<String> value)
Sets the value of the 'referenceStates' field. int
getNumOutputStates()
Gets the value of the 'numOutputStates' field. void
setNumOutputStates(int value)
Sets the value of the 'numOutputStates' field. Instant
getTimeWindowLowerBound()
Gets the value of the 'timeWindowLowerBound' field. void
setTimeWindowLowerBound(Instant value)
Sets the value of the 'timeWindowLowerBound' field. Instant
getTimeWindowUpperBound()
Gets the value of the 'timeWindowUpperBound' field. void
setTimeWindowUpperBound(Instant value)
Sets the value of the 'timeWindowUpperBound' field. static Schema
getClassSchema()
static BinaryMessageEncoder<UniquenessCheckRequestAvro>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<UniquenessCheckRequestAvro>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<UniquenessCheckRequestAvro>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this UniquenessCheckRequestAvro to a ByteBuffer. static UniquenessCheckRequestAvro
fromByteBuffer(ByteBuffer b)
Deserializes a UniquenessCheckRequestAvro from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static UniquenessCheckRequestAvro.Builder
newBuilder()
Creates a new UniquenessCheckRequestAvro RecordBuilder. static UniquenessCheckRequestAvro.Builder
newBuilder(UniquenessCheckRequestAvro.Builder other)
Creates a new UniquenessCheckRequestAvro RecordBuilder by copying an existing Builder. static UniquenessCheckRequestAvro.Builder
newBuilder(UniquenessCheckRequestAvro other)
Creates a new UniquenessCheckRequestAvro RecordBuilder by copying an existing UniquenessCheckRequestAvro 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
-
UniquenessCheckRequestAvro
UniquenessCheckRequestAvro()
Default constructor.
-
UniquenessCheckRequestAvro
UniquenessCheckRequestAvro(HoldingIdentity holdingIdentity, ExternalEventContext flowExternalEventContext, String txId, String originatorX500Name, List<String> inputStates, List<String> referenceStates, Integer numOutputStates, Instant timeWindowLowerBound, Instant timeWindowUpperBound)
All-args constructor.- Parameters:
holdingIdentity
- The holding identity of the virtual node making the uniqueness check request.flowExternalEventContext
- The context of the external event that this request was sent from.txId
- The new value for txIdoriginatorX500Name
- The x500 name of the of the party who initiated a notarization (and by extension, uniqueness check) requestinputStates
- The new value for inputStatesreferenceStates
- The new value for referenceStatesnumOutputStates
- The new value for numOutputStatestimeWindowLowerBound
- The new value for timeWindowLowerBoundtimeWindowUpperBound
- The new value for timeWindowUpperBound
-
-
Method Detail
-
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 virtual node making the uniqueness check request.
- 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.
-
setTxId
void setTxId(String value)
Sets the value of the 'txId' field.
- Parameters:
value
- the value to set.
-
getOriginatorX500Name
String getOriginatorX500Name()
Gets the value of the 'originatorX500Name' field.
-
setOriginatorX500Name
void setOriginatorX500Name(String value)
Sets the value of the 'originatorX500Name' field. The x500 name of the of the party who initiated a notarization (and by extension, uniqueness check) request
- Parameters:
value
- the value to set.
-
getInputStates
List<String> getInputStates()
Gets the value of the 'inputStates' field.
-
setInputStates
void setInputStates(List<String> value)
Sets the value of the 'inputStates' field.
- Parameters:
value
- the value to set.
-
getReferenceStates
List<String> getReferenceStates()
Gets the value of the 'referenceStates' field.
-
setReferenceStates
void setReferenceStates(List<String> value)
Sets the value of the 'referenceStates' field.
- Parameters:
value
- the value to set.
-
getNumOutputStates
int getNumOutputStates()
Gets the value of the 'numOutputStates' field.
-
setNumOutputStates
void setNumOutputStates(int value)
Sets the value of the 'numOutputStates' field.
- Parameters:
value
- the value to set.
-
getTimeWindowLowerBound
Instant getTimeWindowLowerBound()
Gets the value of the 'timeWindowLowerBound' field.
-
setTimeWindowLowerBound
void setTimeWindowLowerBound(Instant value)
Sets the value of the 'timeWindowLowerBound' field.
- Parameters:
value
- the value to set.
-
getTimeWindowUpperBound
Instant getTimeWindowUpperBound()
Gets the value of the 'timeWindowUpperBound' field.
-
setTimeWindowUpperBound
void setTimeWindowUpperBound(Instant value)
Sets the value of the 'timeWindowUpperBound' field.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<UniquenessCheckRequestAvro> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<UniquenessCheckRequestAvro> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<UniquenessCheckRequestAvro> 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 UniquenessCheckRequestAvro to a ByteBuffer.
-
fromByteBuffer
static UniquenessCheckRequestAvro fromByteBuffer(ByteBuffer b)
Deserializes a UniquenessCheckRequestAvro 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 UniquenessCheckRequestAvro.Builder newBuilder()
Creates a new UniquenessCheckRequestAvro RecordBuilder.
-
newBuilder
static UniquenessCheckRequestAvro.Builder newBuilder(UniquenessCheckRequestAvro.Builder other)
Creates a new UniquenessCheckRequestAvro RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static UniquenessCheckRequestAvro.Builder newBuilder(UniquenessCheckRequestAvro other)
Creates a new UniquenessCheckRequestAvro RecordBuilder by copying an existing UniquenessCheckRequestAvro instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-