[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLifecycleManager\u003c/code\u003e class is a final class that inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and manages the lifecycle of an application, with methods to control shutdown processes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetInstance()\u003c/code\u003e is a static method of \u003ccode\u003eLifecycleManager\u003c/code\u003e that returns an instance of the \u003ccode\u003eLifecycleManager\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ebeginShutdown(long arg0)\u003c/code\u003e initiates a shutdown process, taking a \u003ccode\u003elong\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetRemainingShutdownTime()\u003c/code\u003e provides the remaining time left in the shutdown process, and returns a long.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetShutdownHook(LifecycleManager.ShutdownHook arg0)\u003c/code\u003e allows for setting a custom shutdown hook, taking a \u003ccode\u003eShutdownHook\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Class LifecycleManager (2.0.0)\n\n public final class LifecycleManager\n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e LifecycleManager \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### getInstance()\n\n public static LifecycleManager getInstance()\n\nMethods\n-------\n\n### beginShutdown(long arg0)\n\n public synchronized void beginShutdown(long arg0)\n\n### getRemainingShutdownTime()\n\n public long getRemainingShutdownTime()\n\n### interruptAllRequests()\n\n public void interruptAllRequests()\n\n### isShuttingDown()\n\n public boolean isShuttingDown()\n\n### setShutdownHook(LifecycleManager.ShutdownHook arg0)\n\n public synchronized void setShutdownHook(LifecycleManager.ShutdownHook arg0)"]]