Tabnine Logo
MessageProperties.getReceivedDeliveryMode
Code IndexAdd Tabnine to your IDE (free)

How to use
getReceivedDeliveryMode
method
in
org.springframework.amqp.core.MessageProperties

Best Java code snippets using org.springframework.amqp.core.MessageProperties.getReceivedDeliveryMode (Showing top 5 results out of 315)

origin: spring-projects/spring-integration

  headers.put(AmqpHeaders.CORRELATION_ID, correlationId);
MessageDeliveryMode receivedDeliveryMode = amqpMessageProperties.getReceivedDeliveryMode();
if (receivedDeliveryMode != null) {
  headers.put(AmqpHeaders.RECEIVED_DELIVERY_MODE, receivedDeliveryMode);
origin: spring-projects/spring-amqp

  headers.put(AmqpHeaders.CORRELATION_ID, correlationId);
MessageDeliveryMode receivedDeliveryMode = amqpMessageProperties.getReceivedDeliveryMode();
if (receivedDeliveryMode != null) {
  headers.put(AmqpHeaders.RECEIVED_DELIVERY_MODE, receivedDeliveryMode);
origin: org.springframework.integration/spring-integration-amqp

  headers.put(AmqpHeaders.CORRELATION_ID, correlationId);
MessageDeliveryMode receivedDeliveryMode = amqpMessageProperties.getReceivedDeliveryMode();
if (receivedDeliveryMode != null) {
  headers.put(AmqpHeaders.RECEIVED_DELIVERY_MODE, receivedDeliveryMode);
origin: spring-projects/spring-amqp

protected Map<? extends String, ? extends Object> additionalHeaders(Message message, Throwable cause) {
  message.getMessageProperties().setDeliveryMode(message.getMessageProperties().getReceivedDeliveryMode());
  return null;
}
origin: spring-projects/spring-amqp

@Test
public void testInboundDeliveryMode() {
  DefaultMessagePropertiesConverter converter = new DefaultMessagePropertiesConverter();
  MessageProperties props = new MessageProperties();
  String[] strings = new String[] { "1", "2" };
  props.getHeaders().put("strings", strings);
  props.getHeaders().put("objects", new Object[] { new Foo() });
  props.setDeliveryMode(MessageDeliveryMode.NON_PERSISTENT);
  BasicProperties bProps = converter.fromMessageProperties(props, "UTF-8");
  assertEquals(MessageDeliveryMode.toInt(MessageDeliveryMode.NON_PERSISTENT), bProps.getDeliveryMode().intValue());
  props = converter.toMessageProperties(bProps, null, "UTF-8");
  assertEquals(MessageDeliveryMode.NON_PERSISTENT, props.getReceivedDeliveryMode());
  assertArrayEquals(strings, (Object[]) props.getHeaders().get("strings"));
  assertEquals("[FooAsAString]", Arrays.asList((Object[]) props.getHeaders().get("objects")).toString());
  assertNull(props.getDeliveryMode());
}
org.springframework.amqp.coreMessagePropertiesgetReceivedDeliveryMode

Popular methods of MessageProperties

  • getDeliveryTag
  • <init>
  • setHeader
  • getHeaders
  • setExpiration
  • setContentType
  • getReplyTo
  • getCorrelationId
  • getMessageId
  • getReceivedRoutingKey
  • setCorrelationId
  • setDeliveryMode
  • setCorrelationId,
  • setDeliveryMode,
  • setReplyTo,
  • getConsumerQueue,
  • getReceivedExchange,
  • getContentType,
  • getExpiration,
  • setContentEncoding,
  • setMessageId,
  • getAppId

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now