|
1285 | 1285 | <xsd:annotation>
|
1286 | 1286 | <xsd:documentation><![CDATA[
|
1287 | 1287 | When 'true' sets the mandatory flag on basic.publish; only applies if
|
1288 |
| - a 'return-callback' is provided. Mutually exclusive with 'mandatory-expression'. |
| 1288 | + a 'returns-callback' is provided. Mutually exclusive with 'mandatory-expression'. |
1289 | 1289 | Defaults to 'false'.
|
1290 | 1290 | ]]></xsd:documentation>
|
1291 | 1291 | </xsd:annotation>
|
|
1299 | 1299 | A SpEL expression to be evaluated against each request message to determine a 'mandatory' boolean value.
|
1300 | 1300 | The BeanFactoryResolver is available too, if the RabbitTemplate is used from Spring Context,
|
1301 | 1301 | allowing for expressions such as '@myBean.isMandatory(#root)`.
|
1302 |
| - Only applies if a 'return-callback' is provided. Mutually exclusive with 'mandatory'. |
| 1302 | + Only applies if a 'returns-callback' is provided. Mutually exclusive with 'mandatory'. |
1303 | 1303 | ]]></xsd:documentation>
|
1304 | 1304 | </xsd:annotation>
|
1305 | 1305 | </xsd:attribute>
|
|
1309 | 1309 | A reference to an implementation of RabbitTemplate.ReturnCallback - invoked if
|
1310 | 1310 | a return is received for a message published with mandatory set
|
1311 | 1311 | that couldn't be delivered according to the semantics of that option.
|
| 1312 | + DEPRECTATED - use 'returns-callback' instead. |
1312 | 1313 | ]]></xsd:documentation>
|
1313 | 1314 | <xsd:appinfo>
|
1314 | 1315 | <tool:annotation kind="ref">
|
1315 |
| - <tool:expected-type type="org.springframework.amqp.core.RabbitTemplate.ReturnCallback" /> |
| 1316 | + <tool:expected-type type="org.springframework.amqp.core.RabbitTemplate.ReturnCallback"/> |
| 1317 | + </tool:annotation> |
| 1318 | + </xsd:appinfo> |
| 1319 | + </xsd:annotation> |
| 1320 | + </xsd:attribute> |
| 1321 | + <xsd:attribute name="returns-callback" type="xsd:string" use="optional"> |
| 1322 | + <xsd:annotation> |
| 1323 | + <xsd:documentation><![CDATA[ |
| 1324 | + A reference to an implementation of RabbitTemplate.ReturnsCallback - invoked if |
| 1325 | + a return is received for a message published with mandatory set |
| 1326 | + that couldn't be delivered according to the semantics of that option. |
| 1327 | + Replaces the deprecated 'return-callback'. |
| 1328 | + ]]></xsd:documentation> |
| 1329 | + <xsd:appinfo> |
| 1330 | + <tool:annotation kind="ref"> |
| 1331 | + <tool:expected-type type="org.springframework.amqp.core.RabbitTemplate.ReturnsCallback"/> |
1316 | 1332 | </tool:annotation>
|
1317 | 1333 | </xsd:appinfo>
|
1318 | 1334 | </xsd:annotation>
|
|
1326 | 1342 | ]]></xsd:documentation>
|
1327 | 1343 | <xsd:appinfo>
|
1328 | 1344 | <tool:annotation kind="ref">
|
1329 |
| - <tool:expected-type type="org.springframework.amqp.core.RabbitTemplate.ConfirmCallback" /> |
| 1345 | + <tool:expected-type type="org.springframework.amqp.core.RabbitTemplate.ConfirmCallback"/> |
1330 | 1346 | </tool:annotation>
|
1331 | 1347 | </xsd:appinfo>
|
1332 | 1348 | </xsd:annotation>
|
|
0 commit comments