Class LifecycleLock

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public final class LifecycleLock
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      LifecycleLock​(java.lang.Runnable cleanup)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      static <T> T execute​(java.util.List<LifecycleLock> locks, java.util.concurrent.Callable<T> supplier)  
      • Methods inherited from class java.lang.Object

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

      • LifecycleLock

        public LifecycleLock​(java.lang.Runnable cleanup)
    • Method Detail

      • execute

        public static <T> T execute​(java.util.List<LifecycleLock> locks,
                                    java.util.concurrent.Callable<T> supplier)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception