Class CopiedRecord<T extends UnifiedRecordValue>
java.lang.Object
io.camunda.zeebe.protocol.impl.record.CopiedRecord<T>
- All Implemented Interfaces:
JsonSerializable,Record<T>
-
Constructor Summary
ConstructorsConstructorDescriptionCopiedRecord(T recordValue, RecordMetadata metadata, long key, int partitionId, long position, long sourcePosition, long timestamp) -
Method Summary
-
Constructor Details
-
CopiedRecord
public CopiedRecord(T recordValue, RecordMetadata metadata, long key, int partitionId, long position, long sourcePosition, long timestamp)
-
-
Method Details
-
getPosition
public long getPosition()- Specified by:
getPositionin interfaceRecord<T extends UnifiedRecordValue>
-
getSourceRecordPosition
public long getSourceRecordPosition()- Specified by:
getSourceRecordPositionin interfaceRecord<T extends UnifiedRecordValue>
-
getKey
public long getKey()- Specified by:
getKeyin interfaceRecord<T extends UnifiedRecordValue>
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin interfaceRecord<T extends UnifiedRecordValue>
-
getIntent
- Specified by:
getIntentin interfaceRecord<T extends UnifiedRecordValue>
-
getPartitionId
public int getPartitionId()- Specified by:
getPartitionIdin interfaceRecord<T extends UnifiedRecordValue>
-
getRecordType
- Specified by:
getRecordTypein interfaceRecord<T extends UnifiedRecordValue>
-
getRejectionType
- Specified by:
getRejectionTypein interfaceRecord<T extends UnifiedRecordValue>
-
getRejectionReason
- Specified by:
getRejectionReasonin interfaceRecord<T extends UnifiedRecordValue>
-
getBrokerVersion
- Specified by:
getBrokerVersionin interfaceRecord<T extends UnifiedRecordValue>
-
getAuthorizations
- Specified by:
getAuthorizationsin interfaceRecord<T extends UnifiedRecordValue>
-
getRecordVersion
public int getRecordVersion()- Specified by:
getRecordVersionin interfaceRecord<T extends UnifiedRecordValue>
-
getValueType
- Specified by:
getValueTypein interfaceRecord<T extends UnifiedRecordValue>
-
getValue
- Specified by:
getValuein interfaceRecord<T extends UnifiedRecordValue>
-
getOperationReference
public long getOperationReference()- Specified by:
getOperationReferencein interfaceRecord<T extends UnifiedRecordValue>
-
copyOf
- Specified by:
copyOfin interfaceRecord<T extends UnifiedRecordValue>
-
toJson
Please be aware that this method is not thread-safe. Some records contain properties that will get modified when iterating over it (eg. Records containing an invalid input: '{@link io.camunda.zeebe.msgpack.property.ArrayProperty). Multiple threads serializing the same Record at a time will result in exceptions.'- Specified by:
toJsonin interfaceJsonSerializable- Returns:
- a JSON marshaled representation
-
toString
-