Class IdlTestIntegrationEvent
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
ch.admin.bit.jeap.domainevent.avro.event.integration.idl.IdlTestIntegrationEvent
- All Implemented Interfaces:
AvroDomainEvent,ch.admin.bit.jeap.domainevent.DomainEvent,SerializedMessageReceiver,AvroMessage,SerializedMessageHolder,ch.admin.bit.jeap.messaging.model.Message,Externalizable,Serializable,Comparable<org.apache.avro.specific.SpecificRecord>,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord
public class IdlTestIntegrationEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, AvroDomainEvent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for IdlTestIntegrationEvent instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IdlTestIntegrationEvent(AvroDomainEventIdentity identity, AvroDomainEventType type, AvroDomainEventPublisher publisher, IdlTestIntegrationReferences references, IdlTestIntegrationPayload payload, String domainEventVersion) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationEvent> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static IdlTestIntegrationEventDeserializes a IdlTestIntegrationEvent from a ByteBuffer.get(int field$) static org.apache.avro.Schemastatic org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationEvent> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'domainEventVersion' field.static org.apache.avro.message.BinaryMessageEncoder<IdlTestIntegrationEvent> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'identity' field.Gets the value of the 'domainEventVersion' field as an OptionalGets the value of the 'identity' field as an OptionalGets the value of the 'payload' field as an OptionalGets the value of the 'publisher' field as an OptionalGets the value of the 'references' field as an OptionalGets the value of the 'type' field as an OptionalGets the value of the 'payload' field.Gets the value of the 'publisher' field.Gets the value of the 'references' field.org.apache.avro.Schemabyte[]org.apache.avro.specific.SpecificDatagetType()Gets the value of the 'type' field.Creates a new IdlTestIntegrationEvent RecordBuilder.Creates a new IdlTestIntegrationEvent RecordBuilder by copying an existing IdlTestIntegrationEvent instance.Creates a new IdlTestIntegrationEvent RecordBuilder by copying an existing Builder.voidvoidvoidsetDomainEventVersion(String value) Sets the value of the 'domainEventVersion' field.voidSets the value of the 'identity' field.voidSets the value of the 'payload' field.voidsetPayload(ch.admin.bit.jeap.messaging.model.MessagePayload payload) voidSets the value of the 'publisher' field.voidSets the value of the 'references' field.voidsetReferences(ch.admin.bit.jeap.messaging.model.MessageReferences references) voidsetSerializedMessage(byte[] serializedMessage) voidsetType(AvroDomainEventType value) Sets the value of the 'type' field.Serializes this IdlTestIntegrationEvent to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent
setUserMethods inherited from interface ch.admin.bit.jeap.messaging.avro.AvroMessage
getOptionalProcessId, setProcessIdMethods inherited from interface org.apache.avro.generic.GenericRecord
hasFieldMethods inherited from interface ch.admin.bit.jeap.messaging.model.Message
getOptionalUser
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
-
Constructor Details
-
IdlTestIntegrationEvent
public IdlTestIntegrationEvent()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
IdlTestIntegrationEvent
public IdlTestIntegrationEvent(AvroDomainEventIdentity identity, AvroDomainEventType type, AvroDomainEventPublisher publisher, IdlTestIntegrationReferences references, IdlTestIntegrationPayload payload, String domainEventVersion) All-args constructor.- Parameters:
identity- The new value for identitytype- The new value for typepublisher- The new value for publisherreferences- The new value for referencespayload- The new value for payloaddomainEventVersion- The new value for domainEventVersion
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
getDecoder
Return the BinaryMessageDecoder instance used by this class.- Returns:
- the message decoder used by this class
-
createDecoder
public static org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationEvent> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this IdlTestIntegrationEvent to a ByteBuffer.- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
Deserializes a IdlTestIntegrationEvent from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a IdlTestIntegrationEvent instance decoded from the given buffer
- Throws:
IOException- if the given bytes could not be deserialized into an instance of this class
-
getSerializedMessage
public byte[] getSerializedMessage()- Specified by:
getSerializedMessagein interfaceSerializedMessageHolder
-
setSerializedMessage
public void setSerializedMessage(byte[] serializedMessage) - Specified by:
setSerializedMessagein interfaceSerializedMessageReceiver
-
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getIdentity
Gets the value of the 'identity' field.- Specified by:
getIdentityin interfacech.admin.bit.jeap.domainevent.DomainEvent- Specified by:
getIdentityin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'identity' field.
-
getOptionalIdentity
Gets the value of the 'identity' field as an Optional- Returns:
- The value wrapped in an Optional
-
setIdentity
Sets the value of the 'identity' field.- Specified by:
setIdentityin interfaceAvroDomainEvent- Parameters:
value- the value to set.
-
getType
Gets the value of the 'type' field.- Specified by:
getTypein interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'type' field.
-
getOptionalType
Gets the value of the 'type' field as an Optional- Returns:
- The value wrapped in an Optional
-
setType
Sets the value of the 'type' field.- Specified by:
setTypein interfaceAvroDomainEvent- Parameters:
value- the value to set.
-
getPublisher
Gets the value of the 'publisher' field.- Specified by:
getPublisherin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'publisher' field.
-
getOptionalPublisher
Gets the value of the 'publisher' field as an Optional- Returns:
- The value wrapped in an Optional
-
setPublisher
Sets the value of the 'publisher' field.- Specified by:
setPublisherin interfaceAvroDomainEvent- Parameters:
value- the value to set.
-
getReferences
Gets the value of the 'references' field.- Specified by:
getReferencesin interfaceAvroMessage- Specified by:
getReferencesin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'references' field.
-
getOptionalReferences
Gets the value of the 'references' field as an Optional- Specified by:
getOptionalReferencesin interfaceAvroMessage- Specified by:
getOptionalReferencesin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value wrapped in an Optional
-
setReferences
Sets the value of the 'references' field.- Parameters:
value- the value to set.
-
setReferences
public void setReferences(ch.admin.bit.jeap.messaging.model.MessageReferences references) - Specified by:
setReferencesin interfaceAvroMessage
-
getPayload
Gets the value of the 'payload' field.- Specified by:
getPayloadin interfaceAvroMessage- Specified by:
getPayloadin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value of the 'payload' field.
-
getOptionalPayload
Gets the value of the 'payload' field as an Optional- Specified by:
getOptionalPayloadin interfaceAvroMessage- Specified by:
getOptionalPayloadin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value wrapped in an Optional
-
setPayload
Sets the value of the 'payload' field.- Parameters:
value- the value to set.
-
setPayload
public void setPayload(ch.admin.bit.jeap.messaging.model.MessagePayload payload) - Specified by:
setPayloadin interfaceAvroMessage
-
getDomainEventVersion
Gets the value of the 'domainEventVersion' field.- Specified by:
getDomainEventVersionin interfacech.admin.bit.jeap.domainevent.DomainEvent- Returns:
- The value of the 'domainEventVersion' field.
-
getOptionalDomainEventVersion
Gets the value of the 'domainEventVersion' field as an Optional- Returns:
- The value wrapped in an Optional
-
setDomainEventVersion
Sets the value of the 'domainEventVersion' field.- Specified by:
setDomainEventVersionin interfaceAvroDomainEvent- Parameters:
value- the value to set.
-
newBuilder
Creates a new IdlTestIntegrationEvent RecordBuilder.- Returns:
- A new IdlTestIntegrationEvent RecordBuilder
-
newBuilder
Creates a new IdlTestIntegrationEvent RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new IdlTestIntegrationEvent RecordBuilder
-
newBuilder
Creates a new IdlTestIntegrationEvent RecordBuilder by copying an existing IdlTestIntegrationEvent instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new IdlTestIntegrationEvent RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-