@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createQueueMessageStore(destination)); }
@Override public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createTopicMessageStore(destination)); }
@Override public void removeTopicMessageStore(ActiveMQTopic destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeTopicMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeTopicMessageStore(ActiveMQTopic destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeTopicMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeTopicMessageStore(ActiveMQTopic destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeTopicMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeTopicMessageStore(ActiveMQTopic destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeTopicMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createTopicMessageStore(destination)); }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createQueueMessageStore(destination)); }
@Override public MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createQueueMessageStore(destination)); }
@Override public MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createQueueMessageStore(destination)); }
@Override public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createTopicMessageStore(destination)); }
@Override public TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException { PersistenceAdapter persistenceAdapter = getMatchingPersistenceAdapter(destination); return transactionStore.proxy(persistenceAdapter.createTransactionStore(), persistenceAdapter.createTopicMessageStore(destination)); }