public final class JVMUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeAtShutdown(Closeable closeable)
Adds a shutdown hook that tries to call
Closeable.close() on the given argument
at JVM shutdown. |
static long |
getUsedMemory() |
public static void closeAtShutdown(Closeable closeable)
Closeable.close()
on the given argument
at JVM shutdown.closeable
- thing to closepublic static long getUsedMemory()
Copyright © 2014–2018. All rights reserved.