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=c7551f594c34504fffa0055d3360132577938b38;hp=77e300e95aaa7475b276fa10eaa8f37bb9326d5b;hpb=7673c889ad05ddf9b81cc5c903d0838d284c3a7f;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. */