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
@JdkService("adapter-factory") public class ResumeActionAwareAdapter extends Object implements org.apache.camel.resume.ResumeActionAware, org.apache.camel.resume.Cacheable, org.apache.camel.resume.DeserializableA 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 booleanadd(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset)booleandeserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)org.apache.camel.resume.cache.ResumeCache<?>getCache()voidresume()voidsetCache(org.apache.camel.resume.cache.ResumeCache<?> cache)voidsetResumeAction(org.apache.camel.resume.ResumeAction resumeAction)
-
-
-
Method Detail
-
setResumeAction
public void setResumeAction(org.apache.camel.resume.ResumeAction resumeAction)
- Specified by:
setResumeActionin interfaceorg.apache.camel.resume.ResumeActionAware
-
resume
public void resume()
- Specified by:
resumein interfaceorg.apache.camel.resume.ResumeAdapter
-
add
public boolean add(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset)- Specified by:
addin interfaceorg.apache.camel.resume.Cacheable
-
setCache
public void setCache(org.apache.camel.resume.cache.ResumeCache<?> cache)
- Specified by:
setCachein interfaceorg.apache.camel.resume.Cacheable
-
getCache
public org.apache.camel.resume.cache.ResumeCache<?> getCache()
- Specified by:
getCachein interfaceorg.apache.camel.resume.Cacheable
-
deserialize
public boolean deserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer)
- Specified by:
deserializein interfaceorg.apache.camel.resume.Deserializable
-
-