Package org.apache.camel.support.resume
Class ResumeActionAwareAdapter
- java.lang.Object
-
- org.apache.camel.support.resume.ResumeActionAwareAdapter
-
- All Implemented Interfaces:
org.apache.camel.resume.Cacheable
,org.apache.camel.resume.Deserializable
,org.apache.camel.resume.ResumeActionAware
,org.apache.camel.resume.ResumeAdapter
public class ResumeActionAwareAdapter extends Object implements org.apache.camel.resume.ResumeActionAware, org.apache.camel.resume.Cacheable, org.apache.camel.resume.Deserializable
A simple resume adapter that support caching, deserialization and actions. This is usually suitable for supporting resume operations that have simple cache storage requirements, but delegate the resume action to the integrations (i.e.: such as when resuming from database components, where the resume operation can only be determined by the integration itself)
-
-
Constructor Summary
Constructors Constructor Description ResumeActionAwareAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset)
boolean
deserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)
org.apache.camel.resume.cache.ResumeCache<?>
getCache()
void
resume()
void
setCache(org.apache.camel.resume.cache.ResumeCache<?> cache)
void
setResumeAction(org.apache.camel.resume.ResumeAction resumeAction)
-
-
-
Method Detail
-
setResumeAction
public void setResumeAction(org.apache.camel.resume.ResumeAction resumeAction)
- Specified by:
setResumeAction
in interfaceorg.apache.camel.resume.ResumeActionAware
-
resume
public void resume()
- Specified by:
resume
in interfaceorg.apache.camel.resume.ResumeAdapter
-
add
public boolean add(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset)
- Specified by:
add
in interfaceorg.apache.camel.resume.Cacheable
-
setCache
public void setCache(org.apache.camel.resume.cache.ResumeCache<?> cache)
- Specified by:
setCache
in interfaceorg.apache.camel.resume.Cacheable
-
getCache
public org.apache.camel.resume.cache.ResumeCache<?> getCache()
- Specified by:
getCache
in interfaceorg.apache.camel.resume.Cacheable
-
deserialize
public boolean deserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)
- Specified by:
deserialize
in interfaceorg.apache.camel.resume.Deserializable
-
-