Interface MemoryMonitor

All Superinterfaces:

public interface MemoryMonitor extends ResourceMonitor<Long>
A ResourceMonitor for the ResourceMonitoringService.RES_TYPE_MEMORY resource type. A MemoryMonitor instance monitors and limits the memory used by a ResourceContext instance.
  • Method Details

    • getMemoryUsage

      long getMemoryUsage()
      Returns the size of the java heap used by the bundles in this resource context.

      The ResourceMonitor.getUsage() method returns the same value, wrapped in a long.

      the size of the used java heap in bytes