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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringcomputeExchange(IN a)Compute the exchange from the data.default booleancomputeImmediate(IN a)Compute the immediate flag passed to methodChannel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]).default booleancomputeMandatory(IN a)Compute the mandatory flag passed to methodChannel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]).com.rabbitmq.client.AMQP.BasicPropertiescomputeProperties(IN a)Compute the message's properties from the data.StringcomputeRoutingKey(IN a)Compute the message's routing key from the data.
-
-
-
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 methodChannel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]). ASerializableReturnListeneris 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 methodChannel.basicPublish(String, String, boolean, boolean, BasicProperties, byte[]). ASerializableReturnListeneris mandatory if this flag can be true.- Parameters:
a- The data used by the sink- Returns:
- The mandatory flag
-
-