Package org.apache.camel.support.resume
Class ResumeStrategyHelper
java.lang.Object
org.apache.camel.support.resume.ResumeStrategyHelper
Helper class for the resume strategy
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidresume(org.apache.camel.CamelContext context, Object on, org.apache.camel.resume.ResumeStrategy resumeStrategy, String actionName) Executes the resume operationstatic <T extends org.apache.camel.resume.ResumeAdapter>
voidresume(org.apache.camel.CamelContext context, Object on, org.apache.camel.resume.ResumeStrategy resumeStrategy, String actionName, Class<T> adapterClass) Executes the resume operation
-
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 actionon- the calling instance for the resume operationresumeStrategy- the instance of theResumeStrategyto perform the resumeactionName- an action name that maps to aResumeActionobject 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 actionon- the calling instance for the resume operationresumeStrategy- the instance of theResumeStrategyto perform the resumeactionName- an action name that maps to aResumeActionobject in the registryadapterClass- the class of theResumeAdapterto look for in the registry- Throws:
Exception- if the strategy is unable to load the cache
-