All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liveperson.faas.client.IsImplementedCache Maven / Gradle / Ivy

Go to download

Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)

There is a newer version: 1.2.3
Show newest version
package com.liveperson.faas.client;

import com.liveperson.faas.client.types.FaaSEventImplementedExpiry;

public interface IsImplementedCache {

    /**
     * Updates the cache by adding the value of isImplemented with eventId as its key to the cache
     *
     * @param eventId       name of the event whose isImplemented value is cached
     * @param isImplemented boolean indicating whether lambdas exist that implement the given event
     */
    void update(String eventId, boolean isImplemented);

    /**
     * Returns the cached event and its implementation value if stored and valid, otherwise should trigger removal
     * and return null
     *
     * @param eventId name of the event that is looked for
     * @return FaasEventImplementedExpiry that contains the event name and its isImplemented value or null if not found
     */
    FaaSEventImplementedExpiry getIfCachedAndValid(String eventId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy