Class IdlTestIntegrationEvent

java.lang.Object
org.apache.avro.specific.SpecificRecordBase
ch.admin.bit.jeap.domainevent.avro.event.integration.idl.IdlTestIntegrationEvent
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 IdlTestIntegrationEvent extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord, ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent
See Also:
  • 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 use newBuilder().
    • IdlTestIntegrationEvent

      public IdlTestIntegrationEvent(ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity identity, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType type, ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher publisher, IdlTestIntegrationReferences references, IdlTestIntegrationPayload payload, String domainEventVersion)
      All-args constructor.
      Parameters:
      identity - The new value for identity
      type - The new value for type
      publisher - The new value for publisher
      references - The new value for references
      payload - The new value for payload
      domainEventVersion - The new value for domainEventVersion
  • Method Details

    • getClassSchema

      public static org.apache.avro.Schema getClassSchema()
    • getEncoder

      public static org.apache.avro.message.BinaryMessageEncoder<IdlTestIntegrationEvent> getEncoder()
      Return the BinaryMessageEncoder instance used by this class.
      Returns:
      the message encoder used by this class
    • getDecoder

      public static org.apache.avro.message.BinaryMessageDecoder<IdlTestIntegrationEvent> 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 specified SchemaStore.
      Parameters:
      resolver - a SchemaStore used to find schemas by fingerprint
      Returns:
      a BinaryMessageDecoder instance for this class backed by the given SchemaStore
    • toByteBuffer

      public ByteBuffer toByteBuffer() throws IOException
      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

      public static IdlTestIntegrationEvent fromByteBuffer(ByteBuffer b) throws IOException
      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:
      getSerializedMessage in interface ch.admin.bit.jeap.messaging.avro.SerializedMessageHolder
    • setSerializedMessage

      public void setSerializedMessage(byte[] serializedMessage)
      Specified by:
      setSerializedMessage in interface ch.admin.bit.jeap.kafka.SerializedMessageReceiver
    • getSpecificData

      public org.apache.avro.specific.SpecificData getSpecificData()
      Overrides:
      getSpecificData in class org.apache.avro.specific.SpecificRecordBase
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • get

      public Object get(int field$)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • put

      public void put(int field$, Object value$)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • getIdentity

      public ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity getIdentity()
      Gets the value of the 'identity' field.
      Specified by:
      getIdentity in interface ch.admin.bit.jeap.domainevent.DomainEvent
      Specified by:
      getIdentity in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value of the 'identity' field.
    • getOptionalIdentity

      public Optional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventIdentity> 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:
      setIdentity in interface ch.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:
      getType in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value of the 'type' field.
    • getOptionalType

      public Optional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType> 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:
      setType in interface ch.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:
      getPublisher in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value of the 'publisher' field.
    • getOptionalPublisher

      public Optional<ch.admin.bit.jeap.domainevent.avro.AvroDomainEventPublisher> 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:
      setPublisher in interface ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent
      Parameters:
      value - the value to set.
    • getReferences

      public IdlTestIntegrationReferences getReferences()
      Gets the value of the 'references' field.
      Specified by:
      getReferences in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
      Specified by:
      getReferences in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value of the 'references' field.
    • getOptionalReferences

      public Optional<IdlTestIntegrationReferences> getOptionalReferences()
      Gets the value of the 'references' field as an Optional
      Specified by:
      getOptionalReferences in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
      Specified by:
      getOptionalReferences in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value wrapped in an Optional
    • setReferences

      public void setReferences(IdlTestIntegrationReferences value)
      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:
      setReferences in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
    • getPayload

      public IdlTestIntegrationPayload getPayload()
      Gets the value of the 'payload' field.
      Specified by:
      getPayload in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
      Specified by:
      getPayload in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value of the 'payload' field.
    • getOptionalPayload

      public Optional<IdlTestIntegrationPayload> getOptionalPayload()
      Gets the value of the 'payload' field as an Optional
      Specified by:
      getOptionalPayload in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
      Specified by:
      getOptionalPayload in interface ch.admin.bit.jeap.messaging.model.Message
      Returns:
      The value wrapped in an Optional
    • setPayload

      public void setPayload(IdlTestIntegrationPayload value)
      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:
      setPayload in interface ch.admin.bit.jeap.messaging.avro.AvroMessage
    • getDomainEventVersion

      public String getDomainEventVersion()
      Gets the value of the 'domainEventVersion' field.
      Specified by:
      getDomainEventVersion in interface ch.admin.bit.jeap.domainevent.DomainEvent
      Returns:
      The value of the 'domainEventVersion' field.
    • getOptionalDomainEventVersion

      public Optional<String> getOptionalDomainEventVersion()
      Gets the value of the 'domainEventVersion' field as an Optional
      Returns:
      The value wrapped in an Optional
    • setDomainEventVersion

      public void setDomainEventVersion(String value)
      Sets the value of the 'domainEventVersion' field.
      Specified by:
      setDomainEventVersion in interface ch.admin.bit.jeap.domainevent.avro.AvroDomainEvent
      Parameters:
      value - the value to set.
    • newBuilder

      public static IdlTestIntegrationEvent.Builder 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

      public static IdlTestIntegrationEvent.Builder newBuilder(IdlTestIntegrationEvent other)
      Creates a new IdlTestIntegrationEvent RecordBuilder by copying an existing IdlTestIntegrationEvent instance.
      Parameters:
      other - The existing instance to copy.
      Returns:
      A new IdlTestIntegrationEvent RecordBuilder
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput in) throws IOException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class org.apache.avro.specific.SpecificRecordBase
      Throws:
      IOException