Package org.moe

Class GCUtil

  • All Implemented Interfaces:
    NSObject

    public class GCUtil
    extends NSObject
    This is a utility class which helps with common GC related issues.
    • Constructor Detail

      • GCUtil

        protected GCUtil​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • register

        public static void register()
        Registers the utility to act on willResignActive and didReceiveMemoryWarning notifications.
      • alloc

        public static GCUtil alloc()
      • gc

        public static void gc()
        Invoke the garbage collector.
      • delayedGC

        public static void delayedGC()
        Invokes the garbage collector with a default delay of 1 second.
      • delayedGC

        public static void delayedGC​(long millis)
        Invokes the garbage collector after the specified number of milliseconds.
        Parameters:
        millis - delay