Package org.apache.activemq.util
Class BrokerSupport
java.lang.Object
org.apache.activemq.util.BrokerSupport
Utility class for broker operations
-
Method Summary
Modifier and TypeMethodDescriptionprotected static ConnectionContextcreateAdminConnectionContext(Broker broker) Factory method to create the new administration connection context object.static voiddoResend(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination, boolean copy) static ConnectionContextgetConnectionContext(Broker broker) Returns the broker's administration connection context used for configuring the broker at startupstatic voidresend(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination) static voidresendNoCopy(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination)
-
Method Details
-
resendNoCopy
public static void resendNoCopy(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination) throws Exception - Throws:
Exception
-
resend
public static void resend(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination) throws Exception - Parameters:
context-originalMessage-deadLetterDestination-- Throws:
Exception
-
doResend
public static void doResend(ConnectionContext context, org.apache.activemq.command.Message originalMessage, org.apache.activemq.command.ActiveMQDestination deadLetterDestination, boolean copy) throws Exception - Throws:
Exception
-
getConnectionContext
Returns the broker's administration connection context used for configuring the broker at startup -
createAdminConnectionContext
Factory method to create the new administration connection context object. Note this method is here rather than inside a default broker implementation to ensure that the broker reference inside it is the outer most interceptor
-