Interface GetHeapInfoResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
GetHeapInfoResponse, GetHeapInfoResponse.Builder

public interface GetHeapInfoResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the amount of free memory in the Java Virtual Machine.
    long
    Returns the maximum amount of memory that the Java virtual machine will attempt to use.
    long
    Returns the total amount of memory in the Java virtual machine.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getMaxMemory

      long getMaxMemory()
       Returns the maximum amount of memory that the Java virtual machine will attempt to use.
       If there is no inherent limit then the value Long.MAX_VALUE will be returned.
       the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
       
      int64 max_memory = 1 [jstype = JS_STRING];
      Returns:
      The maxMemory.
    • getTotalMemory

      long getTotalMemory()
       Returns the total amount of memory in the Java virtual machine. The value returned by this method may vary over time, depending on the host environment.
       Note that the amount of memory required to hold an object of any given type may be implementation-dependent.
       the total amount of memory currently available for current and future objects, measured in bytes.
       
      int64 total_memory = 2 [jstype = JS_STRING];
      Returns:
      The totalMemory.
    • getFreeMemory

      long getFreeMemory()
       Returns the amount of free memory in the Java Virtual Machine. Calling the gc method may result in increasing the value returned by freeMemory.
       an approximation to the total amount of memory currently available for future allocated objects, measured in bytes.
       
      int64 free_memory = 3 [jstype = JS_STRING];
      Returns:
      The freeMemory.