com.tinkerpop.blueprints.util.TransactionWork Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blueprints-core Show documentation
Show all versions of blueprints-core Show documentation
Core interfaces and utilities for Blueprints
The newest version!
package com.tinkerpop.blueprints.util;
import com.tinkerpop.blueprints.TransactionalGraph;
/**
* Work to be performed within a transaction as part of a TransactionRetryStrategy.
*
* @author Stephen Mallette (http://stephen.genoprime.com)
*/
public interface TransactionWork {
/**
* Modify the graph (e.g. add vertices, change properties, etc.).
*
* @param graph The graph to mutate.
* @return An arbitrary value defined by the implementation of this method.
* @throws Exception
*/
public T execute(TransactionalGraph graph) throws Exception;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy