io.digdag.spi.ParamServerClient Maven / Gradle / Ivy
package io.digdag.spi;
import com.google.common.base.Optional;
import java.util.function.Consumer;
public interface ParamServerClient
{
// default ttl for each record is 90 days
int DEFAULT_TTL_IN_SEC = 60 * 60 * 24 * 90;
Optional get(String key, int sitedId);
void set(String key, String value, int siteId);
void doTransaction(Consumer consumer);
void commit();
}