Examples of MessageDeliveryMode


Examples of org.apache.qpid.transport.MessageDeliveryMode

            message.setJMSTimestamp(currentTime);
        }

        if (!deliveryProp.hasDeliveryMode() || deliveryProp.getDeliveryMode().getValue() != deliveryMode)
        {
            MessageDeliveryMode mode;
            switch (deliveryMode)
            {
            case DeliveryMode.PERSISTENT:
                mode = MessageDeliveryMode.PERSISTENT;
                break;
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

    @SuppressWarnings("unchecked")
    List<Binding> bindings = TestUtils.getPropertyValue(bus, "messageBus.bindings", List.class);
    assertEquals(1, bindings.size());
    AbstractEndpoint endpoint = bindings.get(0).getEndpoint();
    assertEquals("xdbus.props.0", TestUtils.getPropertyValue(endpoint, "handler.delegate.routingKey"));
    MessageDeliveryMode mode = TestUtils.getPropertyValue(endpoint, "handler.delegate.defaultDeliveryMode",
        MessageDeliveryMode.class);
    assertEquals(MessageDeliveryMode.PERSISTENT, mode);
    List<?> requestHeaders = TestUtils.getPropertyValue(endpoint,
        "handler.delegate.headerMapper.requestHeaderMatcher.strategies", List.class);
    assertEquals(2, requestHeaders.size());
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

    assertEquals(2, bindings.size());
    AbstractEndpoint endpoint = bindings.get(0).getEndpoint(); // producer
    assertEquals("foo.props.0.requests",
        TestUtils.getPropertyValue(endpoint, "handler.delegate.routingKey"));
    MessageDeliveryMode mode = TestUtils.getPropertyValue(endpoint, "handler.delegate.defaultDeliveryMode",
        MessageDeliveryMode.class);
    assertEquals(MessageDeliveryMode.NON_PERSISTENT, mode);
    verifyFooRequestBarReplyProducer(endpoint);

    endpoint = bindings.get(1).getEndpoint(); // consumer
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

    assertEquals(2, bindings.size());
    AbstractEndpoint endpoint = bindings.get(1).getEndpoint(); // producer
    assertEquals(
        "headers['amqp_replyTo']",
        TestUtils.getPropertyValue(endpoint, "handler.delegate.routingKeyExpression", SpelExpression.class).getExpressionString());
    MessageDeliveryMode mode = TestUtils.getPropertyValue(endpoint, "handler.delegate.defaultDeliveryMode",
        MessageDeliveryMode.class);
    assertEquals(MessageDeliveryMode.NON_PERSISTENT, mode);

    verifyFooRequestBarReplyProducer(endpoint);
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

    target.messageId(source.getMessageId());
    target.userId(source.getUserId());
    target.appId(source.getAppId());
    target.clusterId(source.getClusterId());
    target.type(source.getType());
    MessageDeliveryMode deliveryMode = source.getDeliveryMode();
    if (deliveryMode != null) {
      target.deliveryMode(MessageDeliveryMode.toInt(deliveryMode));
    }
    target.expiration(source.getExpiration());
    target.priority(source.getPriority());
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

    }
    Object correlationId = headers.get(AmqpHeaders.CORRELATION_ID);
    if (correlationId instanceof byte[]) {
      amqpMessageProperties.setCorrelationId((byte[]) correlationId);
    }
    MessageDeliveryMode deliveryMode = getHeaderIfAvailable(headers, AmqpHeaders.DELIVERY_MODE, MessageDeliveryMode.class);
    if (deliveryMode != null) {
      amqpMessageProperties.setDeliveryMode(deliveryMode);
    }
    Long deliveryTag = getHeaderIfAvailable(headers, AmqpHeaders.DELIVERY_TAG, Long.class);
    if (deliveryTag != null) {
View Full Code Here

Examples of org.springframework.amqp.core.MessageDeliveryMode

      }
      byte[] correlationId = amqpMessageProperties.getCorrelationId();
      if (correlationId != null && correlationId.length > 0) {
        headers.put(AmqpHeaders.CORRELATION_ID, correlationId);
      }
      MessageDeliveryMode deliveryMode = amqpMessageProperties.getDeliveryMode();
      if (deliveryMode != null) {
        headers.put(AmqpHeaders.DELIVERY_MODE, deliveryMode);
      }
      long deliveryTag = amqpMessageProperties.getDeliveryTag();
      if (deliveryTag > 0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.