Example usage for org.springframework.jms.config SimpleJmsListenerEndpoint setConcurrency

List of usage examples for org.springframework.jms.config SimpleJmsListenerEndpoint setConcurrency

Introduction

In this page you can find the example usage for org.springframework.jms.config SimpleJmsListenerEndpoint setConcurrency.

Prototype

public void setConcurrency(@Nullable String concurrency) 

Source Link

Document

Set a concurrency for the listener, if any.

Usage

From source file:org.openbaton.common.vnfm_sdk.amqp.AbstractVnfmSpringJMS.java

@Override
public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) {
    registrar.setContainerFactory(containerFactory);
    SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();
    endpoint.setDestination("core-" + this.type + "-actions");
    endpoint.setMessageListener(this);
    loadProperties();//w w  w.j a  v a 2 s. co m
    log.debug("CONFIGURE Properties are: " + properties);
    endpoint.setConcurrency("5-" + properties.getProperty("concurrency", "15"));
    endpoint.setId(String.valueOf(Thread.currentThread().getId()));
    registrar.registerEndpoint(endpoint);
}