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
-
-
Constructor Summary
Constructors Constructor Description TransientResumeStrategy(org.apache.camel.resume.ResumeAdapter resumeAdapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.camel.resume.ResumeStrategyConfigurationBuilder<org.apache.camel.resume.ResumeStrategyConfigurationBuilder,org.apache.camel.resume.ResumeStrategyConfiguration>
configurationBuilder()
static org.apache.camel.resume.cache.ResumeCache<Object>
createSimpleCache()
org.apache.camel.resume.ResumeAdapter
getAdapter()
<T extends org.apache.camel.resume.ResumeAdapter>
TgetAdapter(Class<T> clazz)
org.apache.camel.resume.ResumeStrategyConfiguration
getResumeStrategyConfiguration()
void
setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
void
setResumeStrategyConfiguration(org.apache.camel.resume.ResumeStrategyConfiguration resumeStrategyConfiguration)
void
start()
void
stop()
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>
voidupdateLastOffset(T offset)
<T extends org.apache.camel.resume.Resumable>
voidupdateLastOffset(T offset, org.apache.camel.resume.ResumeStrategy.UpdateCallBack updateCallBack)
-
-
-
Method Detail
-
setAdapter
public void setAdapter(org.apache.camel.resume.ResumeAdapter adapter)
- Specified by:
setAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
getAdapter
public org.apache.camel.resume.ResumeAdapter getAdapter()
- Specified by:
getAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
getAdapter
public <T extends org.apache.camel.resume.ResumeAdapter> T getAdapter(Class<T> clazz)
- Specified by:
getAdapter
in interfaceorg.apache.camel.resume.ResumeStrategy
-
updateLastOffset
public <T extends org.apache.camel.resume.Resumable> void updateLastOffset(T offset)
- Specified by:
updateLastOffset
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.camel.resume.ResumeStrategy
- Throws:
Exception
-
setResumeStrategyConfiguration
public void setResumeStrategyConfiguration(org.apache.camel.resume.ResumeStrategyConfiguration resumeStrategyConfiguration)
- Specified by:
setResumeStrategyConfiguration
in interfaceorg.apache.camel.resume.ResumeStrategy
-
getResumeStrategyConfiguration
public org.apache.camel.resume.ResumeStrategyConfiguration getResumeStrategyConfiguration()
- Specified by:
getResumeStrategyConfiguration
in interfaceorg.apache.camel.resume.ResumeStrategy
-
updateLastOffset
public void updateLastOffset(org.apache.camel.resume.OffsetKey<?> offsetKey, org.apache.camel.resume.Offset<?> offset)
- Specified by:
updateLastOffset
in interfaceorg.apache.camel.resume.ResumeStrategy
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.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()
-
-