Class EventProcessingFailedEvent
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
ch.admin.bit.jeap.domainevent.avro.error.EventProcessingFailedEvent
- All Implemented Interfaces:
ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent,ch.admin.bit.jeap.domainevent.DomainEvent,ch.admin.bit.jeap.kafka.SerializedMessageReceiver,ch.admin.bit.jeap.messaging.avro.AvroMessage,ch.admin.bit.jeap.messaging.avro.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 EventProcessingFailedEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for EventProcessingFailedEvent instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EventProcessingFailedEvent(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity identity, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType type, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher publisher, EventProcessingFailedReferences references, EventProcessingFailedPayload payload, String processId, String domainEventVersion) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<EventProcessingFailedEvent> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static EventProcessingFailedEventDeserializes a EventProcessingFailedEvent from a ByteBuffer.get(int field$) static org.apache.avro.Schemastatic org.apache.avro.message.BinaryMessageDecoder<EventProcessingFailedEvent> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'domainEventVersion' field.static org.apache.avro.message.BinaryMessageEncoder<EventProcessingFailedEvent> Return the BinaryMessageEncoder instance used by this class.ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentityGets the value of the 'identity' field.Gets the value of the 'domainEventVersion' field as an OptionalOptional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity> Gets the value of the 'identity' field as an OptionalGets the value of the 'payload' field as an OptionalGets the value of the 'processId' field as an OptionalOptional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher> Gets the value of the 'publisher' field as an OptionalGets the value of the 'references' field as an OptionalOptional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType> Gets the value of the 'type' field as an OptionalGets the value of the 'payload' field.Gets the value of the 'processId' field.ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisherGets the value of the 'publisher' field.Gets the value of the 'references' field.org.apache.avro.Schemabyte[]org.apache.avro.specific.SpecificDatach.admin.bit.jeap.domainevent.avro.AvroDomainEventTypegetType()Gets the value of the 'type' field.Creates a new EventProcessingFailedEvent RecordBuilder.Creates a new EventProcessingFailedEvent RecordBuilder by copying an existing EventProcessingFailedEvent instance.Creates a new EventProcessingFailedEvent RecordBuilder by copying an existing Builder.voidvoidvoidsetDomainEventVersion(String value) Sets the value of the 'domainEventVersion' field.voidsetIdentity(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity value) Sets the value of the 'identity' field.voidSets the value of the 'payload' field.voidsetPayload(ch.admin.bit.jeap.messaging.model.MessagePayload payload) voidsetProcessId(String value) Sets the value of the 'processId' field.voidsetPublisher(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher value) Sets 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(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType value) Sets the value of the 'type' field.Serializes this EventProcessingFailedEvent 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 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
-
EventProcessingFailedEvent
public EventProcessingFailedEvent()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
EventProcessingFailedEvent
public EventProcessingFailedEvent(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity identity, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType type, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher publisher, EventProcessingFailedReferences references, EventProcessingFailedPayload payload, String processId, 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 payloadprocessId- The new value for processIddomainEventVersion- 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<EventProcessingFailedEvent> 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 EventProcessingFailedEvent 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 EventProcessingFailedEvent from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a EventProcessingFailedEvent 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 interfacech.admin.bit.jeap.messaging.avro.SerializedMessageHolder
-
setSerializedMessage
public void setSerializedMessage(byte[] serializedMessage) - Specified by:
setSerializedMessagein interfacech.admin.bit.jeap.kafka.SerializedMessageReceiver
-
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
public ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity 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
public void setIdentity(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity value) Sets the value of the 'identity' field.- Specified by:
setIdentityin interfacech.admin.bit.jeap.domainevent.avro.AvroDomainEvent- Parameters:
value- the value to set.
-
getType
public ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType 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
public void setType(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType value) Sets the value of the 'type' field.- Specified by:
setTypein interfacech.admin.bit.jeap.domainevent.avro.AvroDomainEvent- Parameters:
value- the value to set.
-
getPublisher
public ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher 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
public void setPublisher(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher value) Sets the value of the 'publisher' field.- Specified by:
setPublisherin interfacech.admin.bit.jeap.domainevent.avro.AvroDomainEvent- Parameters:
value- the value to set.
-
getReferences
Gets the value of the 'references' field.- Specified by:
getReferencesin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- 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 interfacech.admin.bit.jeap.messaging.avro.AvroMessage- 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 interfacech.admin.bit.jeap.messaging.avro.AvroMessage
-
getPayload
Gets the value of the 'payload' field.- Specified by:
getPayloadin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- 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 interfacech.admin.bit.jeap.messaging.avro.AvroMessage- 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 interfacech.admin.bit.jeap.messaging.avro.AvroMessage
-
getProcessId
Gets the value of the 'processId' field.- Returns:
- The value of the 'processId' field.
-
getOptionalProcessId
Gets the value of the 'processId' field as an Optional- Specified by:
getOptionalProcessIdin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Specified by:
getOptionalProcessIdin interfacech.admin.bit.jeap.messaging.model.Message- Returns:
- The value wrapped in an Optional
-
setProcessId
Sets the value of the 'processId' field.- Specified by:
setProcessIdin interfacech.admin.bit.jeap.messaging.avro.AvroMessage- Parameters:
value- the value to set.
-
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 interfacech.admin.bit.jeap.domainevent.avro.AvroDomainEvent- Parameters:
value- the value to set.
-
newBuilder
Creates a new EventProcessingFailedEvent RecordBuilder.- Returns:
- A new EventProcessingFailedEvent RecordBuilder
-
newBuilder
public static EventProcessingFailedEvent.Builder newBuilder(EventProcessingFailedEvent.Builder other) Creates a new EventProcessingFailedEvent RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new EventProcessingFailedEvent RecordBuilder
-
newBuilder
Creates a new EventProcessingFailedEvent RecordBuilder by copying an existing EventProcessingFailedEvent instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new EventProcessingFailedEvent 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
-