X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fclustering%2Fservices%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fservices%2FIClusterServices.java;h=b3427c7fcc13d77b43afd4666c788f21386cdbb6;hb=c6deff15901f1f4ae649bf6aaf257484175113b7;hp=77e300e95aaa7475b276fa10eaa8f37bb9326d5b;hpb=6bd549c008c3ff070d82010da91fd1dc159431c5;p=controller.git diff --git a/opendaylight/clustering/services/src/main/java/org/opendaylight/controller/clustering/services/IClusterServices.java b/opendaylight/clustering/services/src/main/java/org/opendaylight/controller/clustering/services/IClusterServices.java index 77e300e95a..b3427c7fcc 100644 --- a/opendaylight/clustering/services/src/main/java/org/opendaylight/controller/clustering/services/IClusterServices.java +++ b/opendaylight/clustering/services/src/main/java/org/opendaylight/controller/clustering/services/IClusterServices.java @@ -24,6 +24,7 @@ import java.util.List; import java.util.Properties; import java.util.Set; import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.TimeUnit; import javax.transaction.HeuristicMixedException; import javax.transaction.HeuristicRollbackException; @@ -215,6 +216,16 @@ public interface IClusterServices { */ void tbegin() throws NotSupportedException, SystemException; + /** + * tbegin with a timeout + * @see IClusterServices#tbegin + * @param timeout the transaction timeout + * @param unit TimeUnit for the timeout + * @throws NotSupportedException + * @throws SystemException + */ + void tbegin(long timeout, TimeUnit unit) throws NotSupportedException, SystemException; + /** * Commit a transaction covering all the data structures/HW updates. */