Package org.apache.camel.resume
Interface ResumeAware<T extends ResumeStrategy>
public interface ResumeAware<T extends ResumeStrategy>
An interface to represent an object which wishes to support resume operations using a
ResumeStrategy.-
Method Summary
Modifier and TypeMethodDescriptiondefault StringAllows the implementation to provide custom adapter factories.Gets theResumeStrategyinstancevoidsetResumeStrategy(T resumeStrategy) Injects theResumeStrategyinstance into the object
-
Method Details
-
setResumeStrategy
Injects theResumeStrategyinstance into the object- Parameters:
resumeStrategy- the resume strategy
-
getResumeStrategy
T getResumeStrategy()Gets theResumeStrategyinstance- Returns:
- the resume strategy
-
adapterFactoryService
Allows the implementation to provide custom adapter factories. It binds the service name provided in theJdkServiceannotation in the adapter with the resume aware class. This allows the adapter to be resolved automatically in runtime while also allowing fallback to reusable adapters when available.- Returns:
-