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

com.tinkerpop.blueprints.util.TransactionWork Maven / Gradle / Ivy

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