Interface RMQSinkPublishOptions<IN>

  • Type Parameters:
    IN - The type of the data used by the sink.
    All Superinterfaces:
    Serializable

    @PublicEvolving
    public interface RMQSinkPublishOptions<IN>
    extends Serializable
    The message computation provides methods to compute the message routing key and/or the properties.
    • Method Detail

      • computeRoutingKey

        String computeRoutingKey​(IN a)
        Compute the message's routing key from the data.
        Parameters:
        a - The data used by the sink
        Returns:
        The routing key of the message null will raise a NullPointerException
      • computeProperties

        com.rabbitmq.client.AMQP.BasicProperties computeProperties​(IN a)
        Compute the message's properties from the data.
        Parameters:
        a - The data used by the sink
        Returns:
        The message's properties (can be null)
      • computeExchange

        String computeExchange​(IN a)
        Compute the exchange from the data.
        Parameters:
        a - The data used by the sink
        Returns:
        The exchange to publish the message to null will raise a NullPointerException
      • computeMandatory

        default boolean computeMandatory​(IN a)
        Compute the mandatory flag passed to method Channel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]). A SerializableReturnListener is mandatory if this flag can be true.
        Parameters:
        a - The data used by the sink
        Returns:
        The mandatory flag
      • computeImmediate

        default boolean computeImmediate​(IN a)
        Compute the immediate flag passed to method Channel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]). A SerializableReturnListener is mandatory if this flag can be true.
        Parameters:
        a - The data used by the sink
        Returns:
        The mandatory flag