Skip to content

Instantly share code, notes, and snippets.

@okram
Created October 29, 2013 18:37
Show Gist options
  • Save okram/7220224 to your computer and use it in GitHub Desktop.
Save okram/7220224 to your computer and use it in GitHub Desktop.
public interface Transaction {
public void commit();
public void rollback();
public Transaction open();
public boolean isOpen();
public <G extends Graph> G thread();
public default Transaction configure(Function<Transaction, Transaction> function) {
return function.apply(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment