Class TransientResumeStrategy
- java.lang.Object
-
- org.apache.camel.processor.resume.TransientResumeStrategy
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.resume.ResumeStrategy
,org.apache.camel.Service
public class TransientResumeStrategy extends Object implements org.apache.camel.resume.ResumeStrategy
A resume strategy that keeps all the resume strategy information in memory. This is hardly useful for production level implementations, but can be useful for testing the resume strategies
-
-
Constructor Summary
Constructors Constructor Description TransientResumeStrategy(org.apache.camel.resume.ResumeAdapter resumeAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.resume.ResumeAdapter
getAdapter()
<T extends org.apache.camel.resume.ResumeAdapter>
TgetAdapter(Class<T> clazz)
void
setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
void
start()
void
stop()
-
-
-
Method Detail
-
setAdapter
public void setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
- Specified by:
setAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
getAdapter
public org.apache.camel.resume.ResumeAdapter getAdapter()
- Specified by:
getAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
getAdapter
public <T extends org.apache.camel.resume.ResumeAdapter> T getAdapter(Class<T> clazz)
- Specified by:
getAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
-