public boolean removeMessage(String messageId) throws Exception { return ((Queue)destination).removeMessage(messageId); }
protected void removeMessage(ConnectionContext c, QueueMessageReference r) throws IOException { removeMessage(c, null, r); pagedInPendingDispatchLock.writeLock().lock(); try { dispatchPendingList.remove(r); } finally { pagedInPendingDispatchLock.writeLock().unlock(); } }
/** * In the queue case, mark the node as dropped and then a gc cycle will * remove it from the queue. * * @throws IOException */ @Override protected void acknowledge(final ConnectionContext context, final MessageAck ack, final MessageReference n) throws IOException { this.setTimeOfLastMessageAck(System.currentTimeMillis()); final Destination q = (Destination) n.getRegionDestination(); final QueueMessageReference node = (QueueMessageReference)n; final Queue queue = (Queue)q; queue.removeMessage(context, this, node, ack); }
@Override public void messageExpired(ConnectionContext context, Subscription subs, MessageReference reference) { LOG.debug("message expired: {}", reference); broker.messageExpired(context, reference, subs); destinationStatistics.getExpired().increment(); try { removeMessage(context, subs, (QueueMessageReference) reference); messagesLock.writeLock().lock(); try { messages.rollback(reference.getMessageId()); } finally { messagesLock.writeLock().unlock(); } } catch (IOException e) { LOG.error("Failed to remove expired Message from the store ", e); } }
if (filter.evaluate(context, r)) { removeMessage(context, r); set.remove(r); if (++movedCounter >= maximumMessages && maximumMessages > 0) {
protected void removeMessage(ConnectionContext c, Subscription subs, QueueMessageReference r) throws IOException { MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setDestination(destination); ack.setMessageID(r.getMessageId()); removeMessage(c, subs, r, ack); }
try { QueueMessageReference r = (QueueMessageReference) ref; removeMessage(c, r); messages.rollback(r.getMessageId()); } catch (IOException e) {
removeMessage(context, m); messagesLock.writeLock().lock(); try {
public boolean removeMessage(String messageId) throws Exception { return ((Queue)destination).removeMessage(messageId); }
protected void removeMessage(ConnectionContext c, QueueMessageReference r) throws IOException { removeMessage(c, null, r); pagedInPendingDispatchLock.writeLock().lock(); try { pagedInPendingDispatch.remove(r); } finally { pagedInPendingDispatchLock.writeLock().unlock(); } }
protected void removeMessage(ConnectionContext c, QueueMessageReference r) throws IOException { removeMessage(c, null, r); pagedInPendingDispatchLock.writeLock().lock(); try { dispatchPendingList.remove(r); } finally { pagedInPendingDispatchLock.writeLock().unlock(); } }
protected void removeMessage(ConnectionContext c, QueueMessageReference r) throws IOException { removeMessage(c, null, r); pagedInPendingDispatchLock.writeLock().lock(); try { dispatchPendingList.remove(r); } finally { pagedInPendingDispatchLock.writeLock().unlock(); } }
protected void removeMessage(ConnectionContext c, QueueMessageReference r) throws IOException { removeMessage(c, null, r); pagedInPendingDispatchLock.writeLock().lock(); try { dispatchPendingList.remove(r); } finally { pagedInPendingDispatchLock.writeLock().unlock(); } }
/** * In the queue case, mark the node as dropped and then a gc cycle will * remove it from the queue. * * @throws IOException */ @Override protected void acknowledge(final ConnectionContext context, final MessageAck ack, final MessageReference n) throws IOException { this.setTimeOfLastMessageAck(System.currentTimeMillis()); final Destination q = (Destination) n.getRegionDestination(); final QueueMessageReference node = (QueueMessageReference)n; final Queue queue = (Queue)q; queue.removeMessage(context, this, node, ack); }
public void messageExpired(ConnectionContext context, Subscription subs, MessageReference reference) { if (LOG.isDebugEnabled()) { LOG.debug("message expired: " + reference); } broker.messageExpired(context, reference, subs); destinationStatistics.getExpired().increment(); try { removeMessage(context, subs, (QueueMessageReference) reference); } catch (IOException e) { LOG.error("Failed to remove expired Message from the store ", e); } }
/** * In the queue case, mark the node as dropped and then a gc cycle will * remove it from the queue. * * @throws IOException */ @Override protected void acknowledge(final ConnectionContext context, final MessageAck ack, final MessageReference n) throws IOException { this.setTimeOfLastMessageAck(System.currentTimeMillis()); final Destination q = (Destination) n.getRegionDestination(); final QueueMessageReference node = (QueueMessageReference)n; final Queue queue = (Queue)q; queue.removeMessage(context, this, node, ack); }
protected void removeMessage(ConnectionContext c, Subscription subs, QueueMessageReference r) throws IOException { MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setDestination(destination); ack.setMessageID(r.getMessageId()); removeMessage(c, subs, r, ack); }
protected void removeMessage(ConnectionContext c, Subscription subs, QueueMessageReference r) throws IOException { MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setDestination(destination); ack.setMessageID(r.getMessageId()); removeMessage(c, subs, r, ack); }
protected void removeMessage(ConnectionContext c, Subscription subs, QueueMessageReference r) throws IOException { MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setDestination(destination); ack.setMessageID(r.getMessageId()); removeMessage(c, subs, r, ack); }
protected void removeMessage(ConnectionContext c, Subscription subs, QueueMessageReference r) throws IOException { MessageAck ack = new MessageAck(); ack.setAckType(MessageAck.STANDARD_ACK_TYPE); ack.setDestination(destination); ack.setMessageID(r.getMessageId()); removeMessage(c, subs, r, ack); }