Package com.liveperson.faas.client
Interface IsImplementedCache
-
- All Known Implementing Classes:
DefaultIsImplementedCache
public interface IsImplementedCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FaaSEventImplementedExpirygetIfCachedAndValid(String eventId)Returns the cached event and its implementation value if stored and valid, otherwise should trigger removal and return nullvoidupdate(String eventId, boolean isImplemented)Updates the cache by adding the value of isImplemented with eventId as its key to the cache
-
-
-
Method Detail
-
update
void update(String eventId, boolean isImplemented)
Updates the cache by adding the value of isImplemented with eventId as its key to the cache- Parameters:
eventId- name of the event whose isImplemented value is cachedisImplemented- boolean indicating whether lambdas exist that implement the given event
-
getIfCachedAndValid
FaaSEventImplementedExpiry getIfCachedAndValid(String eventId)
Returns the cached event and its implementation value if stored and valid, otherwise should trigger removal and return null- Parameters:
eventId- name of the event that is looked for- Returns:
- FaasEventImplementedExpiry that contains the event name and its isImplemented value or null if not found
-
-