com.wepay.waltz.common.metadata.StoreMetadataMutexAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of waltz-common Show documentation
Show all versions of waltz-common Show documentation
Waltz is a distributed/replicated write ahead log for transactions.
package com.wepay.waltz.common.metadata;
import com.wepay.waltz.exception.StoreMetadataException;
/**
* This method implements the {@link com.wepay.zktools.zookeeper.MutexAction} for the store metadata.
*/
public interface StoreMetadataMutexAction {
/**
* This method applies the mutex action to the {@link StoreMetadata}'s mutex session.
* @param session The {@link StoreMetadataMutexSession}.
* @throws StoreMetadataException thrown if unable to read metadata from the store.
*/
void apply(StoreMetadataMutexSession session) throws StoreMetadataException;
}