Class 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)
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.camel.resume.Cacheable

        org.apache.camel.resume.Cacheable.FillPolicy
    • Constructor Detail

      • ResumeActionAwareAdapter

        public ResumeActionAwareAdapter()
    • Method Detail

      • setResumeAction

        public void setResumeAction​(org.apache.camel.resume.ResumeAction resumeAction)
        Specified by:
        setResumeAction in interface org.apache.camel.resume.ResumeActionAware
      • resume

        public void resume()
        Specified by:
        resume in interface org.apache.camel.resume.ResumeAdapter
      • add

        public boolean add​(org.apache.camel.resume.OffsetKey<?> key,
                           org.apache.camel.resume.Offset<?> offset)
        Specified by:
        add in interface org.apache.camel.resume.Cacheable
      • setCache

        public void setCache​(org.apache.camel.resume.cache.ResumeCache<?> cache)
        Specified by:
        setCache in interface org.apache.camel.resume.Cacheable
      • getCache

        public org.apache.camel.resume.cache.ResumeCache<?> getCache()
        Specified by:
        getCache in interface org.apache.camel.resume.Cacheable
      • deserialize

        public boolean deserialize​(ByteBuffer keyBuffer,
                                   ByteBuffer valueBuffer)
        Specified by:
        deserialize in interface org.apache.camel.resume.Deserializable