/** * Copies the message matching the given messageId */ public boolean copyMessageTo(ConnectionContext context, String messageId, ActiveMQDestination dest) throws Exception { return copyMatchingMessages(context, createMessageIdFilter(messageId), dest, 1) > 0; }
/** * Copies the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages copied */ public int copyMatchingMessagesTo(ConnectionContext context, String selector, ActiveMQDestination dest, int maximumMessages) throws Exception { return copyMatchingMessages(context, createSelectorFilter(selector), dest, maximumMessages); }
/** * Copies the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages copied */ public int copyMatchingMessagesTo(ConnectionContext context, String selector, ActiveMQDestination dest, int maximumMessages) throws Exception { return copyMatchingMessages(context, createSelectorFilter(selector), dest, maximumMessages); }
/** * Copies the message matching the given messageId */ public boolean copyMessageTo(ConnectionContext context, String messageId, ActiveMQDestination dest) throws Exception { return copyMatchingMessages(context, createMessageIdFilter(messageId), dest, 1) > 0; }
/** * Copies the message matching the given messageId */ public boolean copyMessageTo(ConnectionContext context, String messageId, ActiveMQDestination dest) throws Exception { return copyMatchingMessages(context, createMessageIdFilter(messageId), dest, 1) > 0; }
/** * Copies the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages copied */ public int copyMatchingMessagesTo(ConnectionContext context, String selector, ActiveMQDestination dest, int maximumMessages) throws Exception { return copyMatchingMessages(context, createSelectorFilter(selector), dest, maximumMessages); }
/** * Copies the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages copied */ public int copyMatchingMessagesTo(ConnectionContext context, String selector, ActiveMQDestination dest, int maximumMessages) throws Exception { return copyMatchingMessages(context, createSelectorFilter(selector), dest, maximumMessages); }
/** * Copies the message matching the given messageId */ public boolean copyMessageTo(ConnectionContext context, String messageId, ActiveMQDestination dest) throws Exception { return copyMatchingMessages(context, createMessageIdFilter(messageId), dest, 1) > 0; }
/** * Copies the messages matching the given selector up to the maximum number * of matched messages * * @return the number of messages copied */ public int copyMatchingMessagesTo(ConnectionContext context, String selector, ActiveMQDestination dest, int maximumMessages) throws Exception { return copyMatchingMessages(context, createSelectorFilter(selector), dest, maximumMessages); }
/** * Copies the message matching the given messageId */ public boolean copyMessageTo(ConnectionContext context, String messageId, ActiveMQDestination dest) throws Exception { return copyMatchingMessages(context, createMessageIdFilter(messageId), dest, 1) > 0; }