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 String
Allows the implementation to provide custom adapter factories.Gets theResumeStrategy
instancevoid
setResumeStrategy
(T resumeStrategy) Injects theResumeStrategy
instance into the object
-
Method Details
-
setResumeStrategy
Injects theResumeStrategy
instance into the object- Parameters:
resumeStrategy
- the resume strategy
-
getResumeStrategy
T getResumeStrategy()Gets theResumeStrategy
instance- Returns:
- the resume strategy
-
adapterFactoryService
Allows the implementation to provide custom adapter factories. It binds the service name provided in theJdkService
annotation 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:
-