Package org.apache.camel.resume.cache
Interface ResumeCache<K,V>
-
- Type Parameters:
K- the type of the keyV- the type of the offset value
- All Known Subinterfaces:
MultiEntryCache<K,V>,SingleEntryCache<K,V>
public interface ResumeCache<K,V>This cache stored the resumed data from aResumeStrategy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(K key, V offsetValue)Adds a value to the cachelongcapacity()Gets the cache pool sizebooleancontains(K key, V entry)Whether the cache contains the key with the given entry valuebooleanisFull()Checks whether the cache is full
-
-
-
Method Detail
-
contains
boolean contains(K key, V entry)
Whether the cache contains the key with the given entry value- Parameters:
key- the keyentry- the entry- Returns:
- true if the key/entry pair is stored in the cache
-
add
void add(K key, V offsetValue)
Adds a value to the cache- Parameters:
key- the key to addoffsetValue- the offset value
-
isFull
boolean isFull()
Checks whether the cache is full- Returns:
- true if full, or false otherwise
-
capacity
long capacity()
Gets the cache pool size
-
-