Package org.apache.camel.resume
Interface Cacheable
public interface Cacheable
Used to identify objects that can cache their resume state or data
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The cache fill policy can be used to determine how this cache should be filled with data. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds an offset key and value to the cacheResumeCache
<?> getCache()
Gets the cache in resume adapters and objects that cache their datadefault Cacheable.FillPolicy
Gets the for this cache instancevoid
setCache
(ResumeCache<?> cache) Sets the cache in resume adapters and objects that cache their data
-
Method Details
-
add
Adds an offset key and value to the cache- Parameters:
key
- the key to addoffset
- the offset to add- Returns:
- true if added successfully (i.e.: the cache is not full) or false otherwise
-
setCache
Sets the cache in resume adapters and objects that cache their data- Parameters:
cache
- A resume cache instance
-
getCache
ResumeCache<?> getCache()Gets the cache in resume adapters and objects that cache their data- Returns:
- A resume cache instance
-
getFillPolicy
Gets the for this cache instance- Returns:
- the fill policy set for this instance FillPolicy.MAXIMIZING
-