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.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)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.resume.Cacheable
org.apache.camel.resume.Cacheable.FillPolicy -
Field Summary
Fields inherited from interface org.apache.camel.resume.ResumeAdapter
RESUME_ADAPTER_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(org.apache.camel.resume.OffsetKey<?> key, org.apache.camel.resume.Offset<?> offset) booleandeserialize(ByteBuffer keyBuffer, ByteBuffer valueBuffer) org.apache.camel.resume.cache.ResumeCache<?> getCache()protected org.apache.camel.resume.ResumeActionvoidresume()voidsetCache(org.apache.camel.resume.cache.ResumeCache<?> cache) voidsetResumeAction(org.apache.camel.resume.ResumeAction resumeAction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.resume.Cacheable
getFillPolicyMethods inherited from interface org.apache.camel.resume.Deserializable
deserializeKey, deserializeObject, deserializeValue
-
Constructor Details
-
ResumeActionAwareAdapter
public ResumeActionAwareAdapter()
-
-
Method Details
-
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
- Specified by:
deserializein interfaceorg.apache.camel.resume.Deserializable
-
getResumeAction
protected org.apache.camel.resume.ResumeAction getResumeAction()
-