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
    Constructor
    Description
     
  • Method Summary

    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<?>
     
    protected org.apache.camel.resume.ResumeAction
     
    void
     
    void
    setCache(org.apache.camel.resume.cache.ResumeCache<?> cache)
     
    void
    setResumeAction(org.apache.camel.resume.ResumeAction resumeAction)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.resume.Cacheable

    getFillPolicy

    Methods 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:
      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
    • getResumeAction

      protected org.apache.camel.resume.ResumeAction getResumeAction()