Interface RMQDeserializationSchema.RMQCollector<T>

  • All Superinterfaces:
    org.apache.flink.util.Collector<T>
    Enclosing interface:
    RMQDeserializationSchema<T>

    public static interface RMQDeserializationSchema.RMQCollector<T>
    extends org.apache.flink.util.Collector<T>
    Special collector for RMQ messages.

    It extends the Collector to give the ability to collect more than 1 message and the ability to set the message correlationId and deliveryTag.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean setMessageIdentifiers​(String correlationId, long deliveryTag)
      Sets the correlation id and the delivery tag that corresponds to the records originating from the RMQ event.
      • Methods inherited from interface org.apache.flink.util.Collector

        close, collect
    • Method Detail

      • setMessageIdentifiers

        boolean setMessageIdentifiers​(String correlationId,
                                      long deliveryTag)
        Sets the correlation id and the delivery tag that corresponds to the records originating from the RMQ event. If the correlation id has been processed before, records will not be emitted downstream.

        If not set explicitly, the AMQP.BasicProperties.getCorrelationId() and Envelope.getDeliveryTag() will be used.

        NOTE:Can be called once for a single invocation of a RMQDeserializationSchema.deserialize(Envelope, AMQP.BasicProperties, byte[], RMQCollector) method.

        Returns:
        true, if a message with given correlationId was seen before