Class ExternalEvent.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder

    
    public class ExternalEvent.Builder
    extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
                        

    RecordBuilder for ExternalEvent instances.

    • Constructor Detail

    • Method Detail

      • getTopic

         String getTopic()

        Gets the value of the 'topic' field. The topic that the external event is sent to.

      • setTopic

         ExternalEvent.Builder setTopic(String value)

        Sets the value of the 'topic' field. The topic that the external event is sent to.

        Parameters:
        value - The value of 'topic'.
      • getKey

         ByteBuffer getKey()

        Gets the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.

      • setKey

         ExternalEvent.Builder setKey(ByteBuffer value)

        Sets the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.

        Parameters:
        value - The value of 'key'.
      • getPayload

         ByteBuffer getPayload()

        Gets the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.

      • setPayload

         ExternalEvent.Builder setPayload(ByteBuffer value)

        Sets the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.

        Parameters:
        value - The value of 'payload'.
      • getTimestamp

         Instant getTimestamp()

        Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the external event was created.

      • setTimestamp

         ExternalEvent.Builder setTimestamp(Instant value)

        Sets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the external event was created.

        Parameters:
        value - The value of 'timestamp'.
      • hasTopic

         boolean hasTopic()

        Checks whether the 'topic' field has been set. The topic that the external event is sent to.

      • hasKey

         boolean hasKey()

        Checks whether the 'key' field has been set. Avro serialized representation of the key that the external event is partitioned by.

      • clearKey

         ExternalEvent.Builder clearKey()

        Clears the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.

      • hasPayload

         boolean hasPayload()

        Checks whether the 'payload' field has been set. Avro serialized representation of the payload that the external processor will process.

      • clearPayload

         ExternalEvent.Builder clearPayload()

        Clears the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.

      • hasTimestamp

         boolean hasTimestamp()

        Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the external event was created.