@Override public boolean retryMessage(final long messageID) throws Exception { checkStarted(); clearIO(); try { Filter singleMessageFilter = new Filter() { @Override public boolean match(ServerMessage message) { return message.getMessageID() == messageID; } @Override public SimpleString getFilterString() { return new SimpleString("custom filter for MESSAGEID= messageID"); } }; return queue.retryMessages(singleMessageFilter) > 0; } finally { blockOnIO(); } }
@Override public int retryMessages() throws Exception { checkStarted(); clearIO(); try { return queue.retryMessages(null); } finally { blockOnIO(); } }