Class ActiveMQActivation

java.lang.Object
org.apache.activemq.artemis.ra.inflow.ActiveMQActivation

public class ActiveMQActivation extends Object
  • Field Details

    • ONMESSAGE

      public static final Method ONMESSAGE
  • Constructor Details

  • Method Details

    • getActivationSpec

      public ActiveMQActivationSpec getActivationSpec()
    • getMessageEndpointFactory

      public MessageEndpointFactory getMessageEndpointFactory()
    • isDeliveryTransacted

      public boolean isDeliveryTransacted()
    • getWorkManager

      public WorkManager getWorkManager()
    • isTopic

      public boolean isTopic()
    • start

      public void start() throws ResourceException
      Start the activation
      Throws:
      ResourceException - Thrown if an error occurs
    • getTopicTemporaryQueue

      public SimpleString getTopicTemporaryQueue()
    • setTopicTemporaryQueue

      public void setTopicTemporaryQueue(SimpleString topicTemporaryQueue)
    • getXAResources

      public List<XAResource> getXAResources()
      Returns the list of XAResources for this activation endpoint.
      Returns:
      the list of XAResources for this activation endpoint
    • stop

      public void stop()
      Stop the activation
    • setup

      protected void setup() throws Exception
      Setup the activation
      Throws:
      Exception - Thrown if an error occurs
    • teardown

      protected void teardown(boolean useInterrupt)
    • setupCF

      protected void setupCF() throws Exception
      Throws:
      Exception
    • setupSession

      protected ClientSession setupSession(ClientSessionFactory cf) throws Exception
      Setup a session
      Returns:
      The connection
      Throws:
      Exception - Thrown if an error occurs
    • getAddress

      public SimpleString getAddress()
    • setupDestination

      protected void setupDestination() throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • startReconnectThread

      public void startReconnectThread(String cause)
    • reconnect

      public void reconnect(Throwable failure, boolean useInterrupt)
      Drops all existing connection-related resources and reconnects
      Parameters:
      failure - if reconnecting in the event of a failure
    • getConnectionFactory

      public ActiveMQConnectionFactory getConnectionFactory()