MessageInterceptor addMessageInterceptor(ActiveMQDestination activeMQDestination, MessageInterceptor messageInterceptor) { interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptor(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForTopic(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.TOPIC_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForQueue(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
public void setVirtualDestinations(VirtualDestination[] virtualDestinations) { destinationMap = new DestinationMap(); mappedDestinationMap = new DestinationMap(); this.virtualDestinations = virtualDestinations; for (int i = 0; i < virtualDestinations.length; i++) { VirtualDestination virtualDestination = virtualDestinations[i]; destinationMap.put(virtualDestination.getVirtualDestination(), virtualDestination); mappedDestinationMap.put(virtualDestination.getMappedDestinations(), virtualDestination); } }
/** * A helper method to allow the destination map to be populated from a * dependency injection framework such as Spring */ @SuppressWarnings({"rawtypes"}) protected void setEntries(List<DestinationMapEntry> entries) { for (Object element : entries) { Class<? extends DestinationMapEntry> type = getEntryClass(); if (type.isInstance(element)) { DestinationMapEntry entry = (DestinationMapEntry) element; put(entry.getDestination(), entry.getValue()); } else { throw new IllegalArgumentException("Each entry must be an instance of type: " + type.getName() + " but was: " + element); } } }
public void add(MessageReference node) { ActiveMQMessage message = (ActiveMQMessage) node.getMessageHardRef(); ActiveMQDestination destination = message.getDestination(); MessageQueue queue = null; synchronized (lock) { queue = queueIndex.get(destination); if (queue == null) { queue = messageBuffer.createMessageQueue(); queueIndex.put(destination, queue); subscriptionIndex.put(destination, queue); } } queue.add(node); }
map.put(destination, destination);
public void unsynchronizedPut(ActiveMQDestination key, Object value) { if (key.isComposite()) { ActiveMQDestination[] destinations = key.getCompositeDestinations(); for (int i = 0; i < destinations.length; i++) { ActiveMQDestination childDestination = destinations[i]; put(childDestination, value); } return; } String[] paths = key.getDestinationPaths(); getRootNode(key).add(paths, 0, value); }
MessageInterceptor addMessageInterceptor(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForTopic(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.TOPIC_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptor(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForQueue(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptor(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForTopic(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.TOPIC_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptorForTopic(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.TOPIC_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
MessageInterceptor addMessageInterceptor(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.QUEUE_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
public MessageInterceptor addMessageInterceptorForTopic(String destinationName, MessageInterceptor messageInterceptor) { ActiveMQDestination activeMQDestination = ActiveMQDestination.createDestination(destinationName, ActiveMQDestination.TOPIC_TYPE); interceptorMap.put(activeMQDestination, messageInterceptor); return messageInterceptor; }
public void setVirtualDestinations(VirtualDestination[] virtualDestinations) { destinationMap = new DestinationMap(); mappedDestinationMap = new DestinationMap(); this.virtualDestinations = virtualDestinations; for (int i = 0; i < virtualDestinations.length; i++) { VirtualDestination virtualDestination = virtualDestinations[i]; destinationMap.put(virtualDestination.getVirtualDestination(), virtualDestination); mappedDestinationMap.put(virtualDestination.getMappedDestinations(), virtualDestination); } }
public void setVirtualDestinations(VirtualDestination[] virtualDestinations) { destinationMap = new DestinationMap(); mappedDestinationMap = new DestinationMap(); this.virtualDestinations = virtualDestinations; for (int i = 0; i < virtualDestinations.length; i++) { VirtualDestination virtualDestination = virtualDestinations[i]; destinationMap.put(virtualDestination.getVirtualDestination(), virtualDestination); mappedDestinationMap.put(virtualDestination.getMappedDestinations(), virtualDestination); } }