Class SQLServerApplicationLockTemplate


  • public class SQLServerApplicationLockTemplate
    extends java.lang.Object
    Spring-like template for executing with SQL Server application locks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T execute​(java.util.concurrent.Callable<T> callable)
      Executes this callback with an advisory lock.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public <T> T execute​(java.util.concurrent.Callable<T> callable)
        Executes this callback with an advisory lock.
        Parameters:
        callable - The callback to execute.
        Returns:
        The result of the callable code.