protected void sendResponse() {
super.sendResponse();
for (Map.Entry<SubscriptionHandle, LiveDataSubscriptionResponse> successEntry : getSuccessResponses().entrySet()) {
SubscriptionHandle handle = successEntry.getKey();
LiveDataSubscriptionResponse response = successEntry.getValue();
subscriptionRequestSatisfied(handle, response);
}
for (Map.Entry<SubscriptionHandle, LiveDataSubscriptionResponse> failedEntry : getFailedResponses().entrySet()) {
SubscriptionHandle handle = failedEntry.getKey();
LiveDataSubscriptionResponse response = failedEntry.getValue();
subscriptionRequestFailed(handle, response);
// this is here just to clean up. It's safe to call stopReceivingTicks()
// even if no JMS subscription actually exists.
stopReceivingTicks(response.getTickDistributionSpecification());
}
}