@Override public void afterRollback() throws Exception { contractPrefetchExtension(1); } });
@Override public void afterCommit() throws Exception { Destination nodeDest = (Destination) node.getRegionDestination(); synchronized (dispatchLock) { getSubscriptionStatistics().getDequeues().increment(); if (dispatched.remove(node)) { // if consumer is removed, dispatched will be empty and inflight will // already have been adjusted getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); nodeDest.getDestinationStatistics().getInflight().decrement(); } } contractPrefetchExtension(1); nodeDest.wakeup(); dispatchPending(); }
((Destination)node.getRegionDestination()).getDestinationStatistics().getInflight().decrement(); removeList.add(node); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); contractPrefetchExtension(1); destination = (Destination) node.getRegionDestination(); callDispatchMatched = true; acknowledge(context, ack, node); if (ack.getLastMessageId().equals(messageId)) { contractPrefetchExtension(1); destination = nodeDest; callDispatchMatched = true;
@Override public void afterRollback() throws Exception { contractPrefetchExtension(1); } });
@Override public void afterRollback() throws Exception { contractPrefetchExtension(1); } });
@Override public void afterRollback() throws Exception { contractPrefetchExtension(1); } });
@Override public void afterCommit() throws Exception { Destination nodeDest = (Destination) node.getRegionDestination(); synchronized (dispatchLock) { getSubscriptionStatistics().getDequeues().increment(); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); nodeDest.getDestinationStatistics().getInflight().decrement(); } contractPrefetchExtension(1); nodeDest.wakeup(); dispatchPending(); }
@Override public void afterCommit() throws Exception { Destination nodeDest = (Destination) node.getRegionDestination(); synchronized (dispatchLock) { getSubscriptionStatistics().getDequeues().increment(); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); nodeDest.getDestinationStatistics().getInflight().decrement(); } contractPrefetchExtension(1); nodeDest.wakeup(); dispatchPending(); }
@Override public void afterCommit() throws Exception { Destination nodeDest = (Destination) node.getRegionDestination(); synchronized (dispatchLock) { getSubscriptionStatistics().getDequeues().increment(); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); nodeDest.getDestinationStatistics().getInflight().decrement(); } contractPrefetchExtension(1); nodeDest.wakeup(); dispatchPending(); }
((Destination)node.getRegionDestination()).getDestinationStatistics().getInflight().decrement(); removeList.add(node); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); contractPrefetchExtension(1); destination = (Destination) node.getRegionDestination(); callDispatchMatched = true; acknowledge(context, ack, node); if (ack.getLastMessageId().equals(messageId)) { contractPrefetchExtension(1); destination = nodeDest; callDispatchMatched = true;
((Destination)node.getRegionDestination()).getDestinationStatistics().getInflight().decrement(); removeList.add(node); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); contractPrefetchExtension(1); destination = (Destination) node.getRegionDestination(); callDispatchMatched = true; acknowledge(context, ack, node); if (ack.getLastMessageId().equals(messageId)) { contractPrefetchExtension(1); destination = nodeDest; callDispatchMatched = true;
((Destination)node.getRegionDestination()).getDestinationStatistics().getInflight().decrement(); removeList.add(node); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); dispatched.remove(node); getSubscriptionStatistics().getInflightMessageSize().addSize(-node.getSize()); contractPrefetchExtension(1); } else { registerRemoveSync(context, node); contractPrefetchExtension(1); destination = (Destination) node.getRegionDestination(); callDispatchMatched = true; acknowledge(context, ack, node); if (ack.getLastMessageId().equals(messageId)) { contractPrefetchExtension(1); destination = nodeDest; callDispatchMatched = true;