Class Utils


  • @ThreadSafe
    public final class Utils
    extends java.lang.Object
    Utility methods for external test cluster classes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void limitLife​(long lifetimeMs)
      Launches a thread to terminate the current process after the specified period has elapsed.
      • Methods inherited from class java.lang.Object

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

      • limitLife

        public static void limitLife​(long lifetimeMs)
        Launches a thread to terminate the current process after the specified period has elapsed.
        Parameters:
        lifetimeMs - the time to wait before terminating the current process