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 aResumeStrategy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringadapterFactoryService()Allows the implementation to provide custom adapter factories.TgetResumeStrategy()Gets theResumeStrategyinstancevoidsetResumeStrategy(T resumeStrategy)Injects theResumeStrategyinstance into the object
-
-
-
Method Detail
-
setResumeStrategy
void setResumeStrategy(T resumeStrategy)
Injects theResumeStrategyinstance into the object- Parameters:
resumeStrategy- the resume strategy
-
getResumeStrategy
T getResumeStrategy()
Gets theResumeStrategyinstance- Returns:
- the resume strategy
-
adapterFactoryService
default String 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:
-
-