Class StateAndEventDeadLetterRecord
-
- 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 StateAndEventDeadLetterRecord extends SpecificRecordBase implements SpecificRecord
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
StateAndEventDeadLetterRecord.Builder
RecordBuilder for StateAndEventDeadLetterRecord instances.
-
Constructor Summary
Constructors Constructor Description StateAndEventDeadLetterRecord()
Default constructor. StateAndEventDeadLetterRecord(Instant timestamp, Object key, ByteBuffer state, Object event)
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. Object
getKey()
Gets the value of the 'key' field. void
setKey(Object value)
Sets the value of the 'key' field. ByteBuffer
getState()
Gets the value of the 'state' field. void
setState(ByteBuffer value)
Sets the value of the 'state' field. Object
getEvent()
Gets the value of the 'event' field. void
setEvent(Object value)
Sets the value of the 'event' field. static Schema
getClassSchema()
static BinaryMessageEncoder<StateAndEventDeadLetterRecord>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<StateAndEventDeadLetterRecord>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<StateAndEventDeadLetterRecord>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this StateAndEventDeadLetterRecord to a ByteBuffer. static StateAndEventDeadLetterRecord
fromByteBuffer(ByteBuffer b)
Deserializes a StateAndEventDeadLetterRecord from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static StateAndEventDeadLetterRecord.Builder
newBuilder()
Creates a new StateAndEventDeadLetterRecord RecordBuilder. static StateAndEventDeadLetterRecord.Builder
newBuilder(StateAndEventDeadLetterRecord.Builder other)
Creates a new StateAndEventDeadLetterRecord RecordBuilder by copying an existing Builder. static StateAndEventDeadLetterRecord.Builder
newBuilder(StateAndEventDeadLetterRecord other)
Creates a new StateAndEventDeadLetterRecord RecordBuilder by copying an existing StateAndEventDeadLetterRecord 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
-
StateAndEventDeadLetterRecord
StateAndEventDeadLetterRecord()
Default constructor.
-
StateAndEventDeadLetterRecord
StateAndEventDeadLetterRecord(Instant timestamp, Object key, ByteBuffer state, Object event)
All-args constructor.- Parameters:
timestamp
- The new value for timestampkey
- The new value for keystate
- The new value for stateevent
- The new value for event
-
-
Method Detail
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field.
-
setTimestamp
void setTimestamp(Instant value)
Sets the value of the 'timestamp' field.
- Parameters:
value
- the value to set.
-
setKey
void setKey(Object value)
Sets the value of the 'key' field.
- Parameters:
value
- the value to set.
-
getState
ByteBuffer getState()
Gets the value of the 'state' field.
-
setState
void setState(ByteBuffer value)
Sets the value of the 'state' field.
- Parameters:
value
- the value to set.
-
setEvent
void setEvent(Object value)
Sets the value of the 'event' field.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<StateAndEventDeadLetterRecord> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<StateAndEventDeadLetterRecord> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<StateAndEventDeadLetterRecord> 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 StateAndEventDeadLetterRecord to a ByteBuffer.
-
fromByteBuffer
static StateAndEventDeadLetterRecord fromByteBuffer(ByteBuffer b)
Deserializes a StateAndEventDeadLetterRecord 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 StateAndEventDeadLetterRecord.Builder newBuilder()
Creates a new StateAndEventDeadLetterRecord RecordBuilder.
-
newBuilder
static StateAndEventDeadLetterRecord.Builder newBuilder(StateAndEventDeadLetterRecord.Builder other)
Creates a new StateAndEventDeadLetterRecord RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static StateAndEventDeadLetterRecord.Builder newBuilder(StateAndEventDeadLetterRecord other)
Creates a new StateAndEventDeadLetterRecord RecordBuilder by copying an existing StateAndEventDeadLetterRecord instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-