Package com.liveperson.faas.client
Class DefaultIsImplementedCache
- java.lang.Object
-
- com.liveperson.faas.client.DefaultIsImplementedCache
-
- All Implemented Interfaces:
IsImplementedCache
public class DefaultIsImplementedCache extends Object implements IsImplementedCache
-
-
Method Summary
All Methods Instance Methods Concrete 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
public void update(String eventId, boolean isImplemented)
Description copied from interface:IsImplementedCacheUpdates the cache by adding the value of isImplemented with eventId as its key to the cache- Specified by:
updatein interfaceIsImplementedCache- Parameters:
eventId- name of the event whose isImplemented value is cachedisImplemented- boolean indicating whether lambdas exist that implement the given event
-
getIfCachedAndValid
public FaaSEventImplementedExpiry getIfCachedAndValid(String eventId)
Description copied from interface:IsImplementedCacheReturns the cached event and its implementation value if stored and valid, otherwise should trigger removal and return null- Specified by:
getIfCachedAndValidin interfaceIsImplementedCache- 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
-
-