Class TransientResumeStrategy

java.lang.Object
org.apache.camel.processor.resume.TransientResumeStrategy
All Implemented Interfaces:
AutoCloseable, org.apache.camel.resume.ResumeStrategy, org.apache.camel.Service

@JdkService("transient-resume-strategy") public class TransientResumeStrategy extends Object implements org.apache.camel.resume.ResumeStrategy
A resume strategy that keeps all the resume strategy information in memory. This is hardly useful for production level implementations, but can be useful for testing the resume strategies
  • Nested Class Summary

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

    org.apache.camel.resume.ResumeStrategy.UpdateCallBack
  • Field Summary

    Fields inherited from interface org.apache.camel.resume.ResumeStrategy

    DEFAULT_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransientResumeStrategy(org.apache.camel.resume.ResumeAdapter resumeAdapter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.camel.resume.ResumeStrategyConfigurationBuilder<org.apache.camel.resume.ResumeStrategyConfigurationBuilder<?,?>,org.apache.camel.resume.ResumeStrategyConfiguration>
     
    static org.apache.camel.resume.cache.ResumeCache<Object>
     
    org.apache.camel.resume.ResumeAdapter
     
    <T extends org.apache.camel.resume.ResumeAdapter>
    T
    getAdapter(Class<T> clazz)
     
    org.apache.camel.resume.ResumeStrategyConfiguration
     
    void
    setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
     
    void
    setResumeStrategyConfiguration(org.apache.camel.resume.ResumeStrategyConfiguration resumeStrategyConfiguration)
     
    void
     
    void
     
    void
    updateLastOffset(org.apache.camel.resume.OffsetKey<?> offsetKey, org.apache.camel.resume.Offset<?> offset)
     
    void
    updateLastOffset(org.apache.camel.resume.OffsetKey<?> offsetKey, org.apache.camel.resume.Offset<?> offset, org.apache.camel.resume.ResumeStrategy.UpdateCallBack updateCallBack)
     
    <T extends org.apache.camel.resume.Resumable>
    void
    updateLastOffset(T offset)
     
    <T extends org.apache.camel.resume.Resumable>
    void
    updateLastOffset(T offset, org.apache.camel.resume.ResumeStrategy.UpdateCallBack updateCallBack)
     

    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.ResumeStrategy

    loadCache

    Methods inherited from interface org.apache.camel.Service

    build, close, init
  • Constructor Details

    • TransientResumeStrategy

      public TransientResumeStrategy(org.apache.camel.resume.ResumeAdapter resumeAdapter)
  • Method Details

    • setAdapter

      public void setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
      Specified by:
      setAdapter in interface org.apache.camel.resume.ResumeStrategy
    • getAdapter

      public org.apache.camel.resume.ResumeAdapter getAdapter()
      Specified by:
      getAdapter in interface org.apache.camel.resume.ResumeStrategy
    • getAdapter

      public <T extends org.apache.camel.resume.ResumeAdapter> T getAdapter(Class<T> clazz)
      Specified by:
      getAdapter in interface org.apache.camel.resume.ResumeStrategy
    • updateLastOffset

      public <T extends org.apache.camel.resume.Resumable> void updateLastOffset(T offset)
      Specified by:
      updateLastOffset in interface org.apache.camel.resume.ResumeStrategy
    • updateLastOffset

      public <T extends org.apache.camel.resume.Resumable> void updateLastOffset(T offset, org.apache.camel.resume.ResumeStrategy.UpdateCallBack updateCallBack) throws Exception
      Specified by:
      updateLastOffset in interface org.apache.camel.resume.ResumeStrategy
      Throws:
      Exception
    • updateLastOffset

      public void updateLastOffset(org.apache.camel.resume.OffsetKey<?> offsetKey, org.apache.camel.resume.Offset<?> offset, org.apache.camel.resume.ResumeStrategy.UpdateCallBack updateCallBack) throws Exception
      Specified by:
      updateLastOffset in interface org.apache.camel.resume.ResumeStrategy
      Throws:
      Exception
    • setResumeStrategyConfiguration

      public void setResumeStrategyConfiguration(org.apache.camel.resume.ResumeStrategyConfiguration resumeStrategyConfiguration)
      Specified by:
      setResumeStrategyConfiguration in interface org.apache.camel.resume.ResumeStrategy
    • getResumeStrategyConfiguration

      public org.apache.camel.resume.ResumeStrategyConfiguration getResumeStrategyConfiguration()
      Specified by:
      getResumeStrategyConfiguration in interface org.apache.camel.resume.ResumeStrategy
    • updateLastOffset

      public void updateLastOffset(org.apache.camel.resume.OffsetKey<?> offsetKey, org.apache.camel.resume.Offset<?> offset)
      Specified by:
      updateLastOffset in interface org.apache.camel.resume.ResumeStrategy
    • start

      public void start()
      Specified by:
      start in interface org.apache.camel.Service
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.camel.Service
    • configurationBuilder

      public static org.apache.camel.resume.ResumeStrategyConfigurationBuilder<org.apache.camel.resume.ResumeStrategyConfigurationBuilder<?,?>,org.apache.camel.resume.ResumeStrategyConfiguration> configurationBuilder()
    • createSimpleCache

      public static org.apache.camel.resume.cache.ResumeCache<Object> createSimpleCache()