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 String
adapterFactoryService()
Allows the implementation to provide custom adapter factories.T
getResumeStrategy()
Gets theResumeStrategy
instancevoid
setResumeStrategy(T resumeStrategy)
Injects theResumeStrategy
instance into the object
-
-
-
Method Detail
-
setResumeStrategy
void setResumeStrategy(T resumeStrategy)
Injects theResumeStrategy
instance into the object- Parameters:
resumeStrategy
- the resume strategy
-
getResumeStrategy
T getResumeStrategy()
Gets theResumeStrategy
instance- Returns:
- the resume strategy
-
adapterFactoryService
default String 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:
-
-