Package com.cloudera.oryx.common.io

Examples of com.cloudera.oryx.common.io.ClosingRunnable


   * at JVM shutdown.
   *
   * @param closeable thing to close
   */
  public static void closeAtShutdown(Closeable closeable) {
    Runtime.getRuntime().addShutdownHook(new Thread(new ClosingRunnable(closeable)));
  }
View Full Code Here

TOP

Related Classes of com.cloudera.oryx.common.io.ClosingRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.