Class ResumeStrategyHelper


  • public final class ResumeStrategyHelper
    extends Object
    Helper class for the resume strategy
    • Method Detail

      • resume

        public static void resume​(org.apache.camel.CamelContext context,
                                  Object on,
                                  org.apache.camel.resume.ResumeStrategy resumeStrategy,
                                  String actionName)
                           throws Exception
        Executes the resume operation
        Parameters:
        context - a camel context on which the registry will be searched for the resume action
        on - the calling instance for the resume operation
        resumeStrategy - the instance of the ResumeStrategy to perform the resume
        actionName - an action name that maps to a ResumeAction object in the registry
        Throws:
        Exception - if the strategy is unable to load the cache
      • resume

        public static <T extends org.apache.camel.resume.ResumeAdapter> void resume​(org.apache.camel.CamelContext context,
                                                                                    Object on,
                                                                                    org.apache.camel.resume.ResumeStrategy resumeStrategy,
                                                                                    String actionName,
                                                                                    Class<T> adapterClass)
                                                                             throws Exception
        Executes the resume operation
        Parameters:
        context - a camel context on which the registry will be searched for the resume action
        on - the calling instance for the resume operation
        resumeStrategy - the instance of the ResumeStrategy to perform the resume
        actionName - an action name that maps to a ResumeAction object in the registry
        adapterClass - the class of the ResumeAdapter to look for in the registry
        Throws:
        Exception - if the strategy is unable to load the cache