Package org.apache.camel.resume
Interface ResumeStrategy
-
- All Superinterfaces:
AutoCloseable,Service
public interface ResumeStrategy extends Service
Defines a strategy for handling resume operations. Implementations can define different ways to handle how to resume processing records.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResumeAdaptergetAdapter()Gets an adapter for resuming operationsdefault <T extends ResumeAdapter>
TgetAdapter(Class<T> clazz)Gets and adapter for resuming operations
-
-
-
Method Detail
-
getAdapter
ResumeAdapter getAdapter()
Gets an adapter for resuming operations
-
getAdapter
default <T extends ResumeAdapter> T getAdapter(Class<T> clazz)
Gets and adapter for resuming operations- Type Parameters:
T- the type of the adapter- Parameters:
clazz- the class of the adapter- Returns:
- the adapter or null if it can't be cast to the requested class
-
-