@Override public void resetBatching(String clientId, String subscriptionName) { MemoryTopicSub sub = topicSubMap.get(new SubscriptionKey(clientId, subscriptionName)); if (sub != null) { sub.resetBatching(); } }
void removeMessage(MessageId id) { Message removed; synchronized (this) { removed = map.remove(id); if ((lastBatch != null && lastBatch.equals(id)) || map.isEmpty()) { resetBatching(); } } if (removed != null) { removed.decrementReferenceCount(); } }
public void resetBatching(String clientId, String subscriptionName) { MemoryTopicSub sub = topicSubMap.get(new SubscriptionKey(clientId, subscriptionName)); if (sub != null) { sub.resetBatching(); } } }
@Override public void resetBatching(String clientId, String subscriptionName) { MemoryTopicSub sub = topicSubMap.get(new SubscriptionKey(clientId, subscriptionName)); if (sub != null) { sub.resetBatching(); } }
@Override public void resetBatching(String clientId, String subscriptionName) { MemoryTopicSub sub = topicSubMap.get(new SubscriptionKey(clientId, subscriptionName)); if (sub != null) { sub.resetBatching(); } }
@Override public void resetBatching(String clientId, String subscriptionName) { MemoryTopicSub sub = topicSubMap.get(new SubscriptionKey(clientId, subscriptionName)); if (sub != null) { sub.resetBatching(); } }
void removeMessage(MessageId id) { Message removed; synchronized (this) { removed = map.remove(id); if ((lastBatch != null && lastBatch.equals(id)) || map.isEmpty()) { resetBatching(); } } if (removed != null) { removed.decrementReferenceCount(); } }
void removeMessage(MessageId id) { Message removed; synchronized (this) { removed = map.remove(id); if ((lastBatch != null && lastBatch.equals(id)) || map.isEmpty()) { resetBatching(); } } if (removed != null) { removed.decrementReferenceCount(); } }
void removeMessage(MessageId id) { Message removed; synchronized(this) { removed = map.remove(id); if ((lastBatch != null && lastBatch.equals(id)) || map.isEmpty()) { resetBatching(); } } if( removed!=null ) { removed.decrementReferenceCount(); } }
void removeMessage(MessageId id) { Message removed; synchronized (this) { removed = map.remove(id); if ((lastBatch != null && lastBatch.equals(id)) || map.isEmpty()) { resetBatching(); } } if (removed != null) { removed.decrementReferenceCount(); } }