Class PqStorageKvBase

java.lang.Object
com.illumon.iris.controller.pqstorage.PqStorageKvBase
All Implemented Interfaces:
PqStorage
Direct Known Subclasses:
PqStorageEtcdImpl

public abstract class PqStorageKvBase
extends Object
implements PqStorage
Abstract base for PqStorage which uses a kv-store for its underlying storage. It includes a local cache to speed operations. This local cache is generally trusted when determining whether or not a query exists. However, if the revision is wrong when attempting to update or delete a persistent query, instead of crashing the controller, we'll just update the revision for that query, overwriting what was there.