@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { return ((TopicMessageStore)delegate).getMessageCount(clientId, subscriberName); }
@Override protected synchronized int getStoreSize() { try { return store.getMessageCount(clientId, subscriberName); } catch (Exception e) { LOG.error("{} Failed to get the outstanding message count from the store", this, e); throw new RuntimeException(e); } }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { this.peristenceAdapter.checkpoint(true, true); return longTermStore.getMessageCount(clientId, subscriberName); }
@Override public void add(ConnectionContext context, Destination destination) throws Exception { if (!destinations.contains(destination)) { super.add(context, destination); } // do it just once per destination if (durableDestinations.containsKey(destination.getActiveMQDestination())) { return; } durableDestinations.put(destination.getActiveMQDestination(), destination); if (active.get() || keepDurableSubsActive) { Topic topic = (Topic) destination; topic.activate(context, this); getSubscriptionStatistics().getEnqueues().add(pending.size()); } else if (destination.getMessageStore() != null) { TopicMessageStore store = (TopicMessageStore) destination.getMessageStore(); try { getSubscriptionStatistics().getEnqueues().add(store.getMessageCount(subscriptionKey.getClientId(), subscriptionKey.getSubscriptionName())); } catch (IOException e) { JMSException jmsEx = new JMSException("Failed to retrieve enqueueCount from store " + e); jmsEx.setLinkedException(e); throw jmsEx; } } dispatchPending(); }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { return delegate.getMessageCount(clientId, subscriberName); }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { return delegate.getMessageCount(clientId, subscriberName); }
@Override public int getMessageCount() throws IOException { return delegate.getMessageCount(); }
@Override public int getMessageCount() throws IOException { return delegate.getMessageCount(); }
@Override public int getMessageCount() throws IOException { return delegate.getMessageCount(); }
public int getMessageCount(String clientId, String subscriberName) throws IOException { return delegate.getMessageCount(clientId, subscriberName); }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { return delegate.getMessageCount(clientId, subscriberName); }
public int getMessageCount() throws IOException { return delegate.getMessageCount(); }
@Override protected synchronized int getStoreSize() { try { return store.getMessageCount(clientId, subscriberName); } catch (Exception e) { LOG.error("{} Failed to get the outstanding message count from the store", this, e); throw new RuntimeException(e); } }
@Override protected synchronized int getStoreSize() { try { return store.getMessageCount(clientId, subscriberName); } catch (Exception e) { LOG.error("{} Failed to get the outstanding message count from the store", this, e); throw new RuntimeException(e); } }
@Override protected synchronized int getStoreSize() { try { return store.getMessageCount(clientId, subscriberName); } catch (Exception e) { LOG.error("{} Failed to get the outstanding message count from the store", this, e); throw new RuntimeException(e); } }
@Override protected synchronized int getStoreSize() { try { return store.getMessageCount(clientId, subscriberName); } catch (Exception e) { LOG.error(this + " Failed to get the outstanding message count from the store", e); throw new RuntimeException(e); } }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { this.peristenceAdapter.checkpoint(true, true); return longTermStore.getMessageCount(clientId, subscriberName); }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { this.peristenceAdapter.checkpoint(true, true); return longTermStore.getMessageCount(clientId, subscriberName); }
@Override public int getMessageCount(String clientId, String subscriberName) throws IOException { this.peristenceAdapter.checkpoint(true, true); return longTermStore.getMessageCount(clientId, subscriberName); }
public int getMessageCount(String clientId, String subscriberName) throws IOException { this.peristenceAdapter.checkpoint(true, true); return longTermStore.getMessageCount(clientId, subscriberName); }