@InterfaceAudience.Private @InterfaceStability.Evolving public class DirectMemoryUtils extends Object
| Constructor and Description |
|---|
DirectMemoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
destroyDirectByteBuffer(ByteBuffer toBeDestroyed)
DirectByteBuffers are garbage collected by using a phantom reference and a reference queue.
|
static long |
getDirectMemorySize()
Returns the direct memory limit of the current progress
|
static long |
getDirectMemoryUsage()
Returns the current amount of direct memory used.
|
static long |
getNettyDirectMemoryUsage()
Returns the current amount of direct memory used by netty module.
|
public static long getDirectMemorySize()
public static long getDirectMemoryUsage()
public static long getNettyDirectMemoryUsage()
public static void destroyDirectByteBuffer(ByteBuffer toBeDestroyed) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.