]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.util/src/org/argeo/util/transaction/WorkControl.java
Cosmetic improvements
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / transaction / WorkControl.java
1 package org.argeo.util.transaction;
2
3 import java.util.concurrent.Callable;
4
5 /**
6 * A minimalistic interface inspired by OSGi transaction control in order to
7 * commit units of work externally.
8 */
9 public interface WorkControl {
10 <T> T required(Callable<T> work);
11
12 void setRollbackOnly();
13
14 WorkContext getWorkContext();
15 }