Class ResumeStrategyHelper

java.lang.Object
org.apache.camel.support.resume.ResumeStrategyHelper

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

    Modifier and Type
    Method
    Description
    static void
    resume(org.apache.camel.CamelContext context, Object on, org.apache.camel.resume.ResumeStrategy resumeStrategy, String actionName)
    Executes the resume operation
    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)
    Executes the resume operation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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