Class MessageServiceInvoker

java.lang.Object
org.kuali.rice.ksb.messaging.MessageServiceInvoker
All Implemented Interfaces:
Runnable

public class MessageServiceInvoker extends Object implements Runnable
Handles invocation of a PersistedMessageBO.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • LOG

      protected static final org.apache.logging.log4j.Logger LOG
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • placeInExceptionRouting

      protected void placeInExceptionRouting(Throwable t)
      Executed when an exception is encountered during message invocation. Attempts to call the ExceptionHandler for the message, if that fails it will attempt to set the status of the message in the queue to "EXCEPTION".
    • invokeService

      protected Object invokeService(AsynchronousCall methodCall) throws Exception
      Invokes the AsynchronousCall represented on the methodCall on the service contained in the ServiceInfo object on the AsynchronousCall.
      Throws:
      Exception
    • getService

      protected Object getService(ServiceConfiguration serviceConfiguration)
    • getTopicService

      protected Object getTopicService(ServiceConfiguration serviceConfiguration)
      Get the service as a topic. This means we want to contact every service that is a part of this topic. We've grabbed all the services that are a part of this topic and we want to make sure that we get everyone of them = that is we want to circumvent loadbalancing and therefore not ask for the service by it's name but the url to get the exact service we want.
    • getQueueService

      protected Object getQueueService(ServiceConfiguration serviceConfiguration)
      Because this is a queue we just need to grab one.
    • getMessage

      public PersistedMessageBO getMessage()