Package org.apache.camel.support.resume
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
All Methods Static Methods Concrete Methods 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 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 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 actionon
- the calling instance for the resume operationresumeStrategy
- the instance of theResumeStrategy
to perform the resumeactionName
- an action name that maps to aResumeAction
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 actionon
- the calling instance for the resume operationresumeStrategy
- the instance of theResumeStrategy
to perform the resumeactionName
- an action name that maps to aResumeAction
object in the registryadapterClass
- the class of theResumeAdapter
to look for in the registry- Throws:
Exception
- if the strategy is unable to load the cache
-
-