/** * Removes the messages matching the given selector * * @return the number of messages removed */ public int removeMatchingMessages(String selector) throws Exception { return removeMatchingMessages(selector, -1); }
public synchronized int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return ((Queue)destination).removeMatchingMessages(selector, maximumMessages); }
public synchronized int removeMatchingMessages(String selector) throws Exception { return ((Queue)destination).removeMatchingMessages(selector); }
/** * Removes the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages removed */ public int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return removeMatchingMessages(createSelectorFilter(selector), maximumMessages); }
/** * Removes the message matching the given messageId */ public boolean removeMessage(String messageId) throws Exception { return removeMatchingMessages(createMessageIdFilter(messageId), 1) > 0; }
/** * Removes the messages matching the given selector * * @return the number of messages removed */ public int removeMatchingMessages(String selector) throws Exception { return removeMatchingMessages(selector, -1); }
/** * Removes the messages matching the given selector * * @return the number of messages removed */ public int removeMatchingMessages(String selector) throws Exception { return removeMatchingMessages(selector, -1); }
/** * Removes the messages matching the given selector * * @return the number of messages removed */ public int removeMatchingMessages(String selector) throws Exception { return removeMatchingMessages(selector, -1); }
public synchronized int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return ((Queue)destination).removeMatchingMessages(selector, maximumMessages); }
/** * Removes the messages matching the given selector * * @return the number of messages removed */ public int removeMatchingMessages(String selector) throws Exception { return removeMatchingMessages(selector, -1); }
public synchronized int removeMatchingMessages(String selector) throws Exception { return ((Queue)destination).removeMatchingMessages(selector); }
public synchronized int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return ((Queue)destination).removeMatchingMessages(selector, maximumMessages); }
/** * Removes the message matching the given messageId */ public boolean removeMessage(String messageId) throws Exception { return removeMatchingMessages(createMessageIdFilter(messageId), 1) > 0; }
/** * Removes the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages removed */ public int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return removeMatchingMessages(createSelectorFilter(selector), maximumMessages); }
/** * Removes the message matching the given messageId */ public boolean removeMessage(String messageId) throws Exception { return removeMatchingMessages(createMessageIdFilter(messageId), 1) > 0; }
/** * Removes the message matching the given messageId */ public boolean removeMessage(String messageId) throws Exception { return removeMatchingMessages(createMessageIdFilter(messageId), 1) > 0; }
/** * Removes the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages removed */ public int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return removeMatchingMessages(createSelectorFilter(selector), maximumMessages); }
/** * Removes the message matching the given messageId */ public boolean removeMessage(String messageId) throws Exception { return removeMatchingMessages(createMessageIdFilter(messageId), 1) > 0; }
/** * Removes the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages removed */ public int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return removeMatchingMessages(createSelectorFilter(selector), maximumMessages); }
/** * Removes the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages removed */ public int removeMatchingMessages(String selector, int maximumMessages) throws Exception { return removeMatchingMessages(createSelectorFilter(selector), maximumMessages); }