66 * @params slot the slot in the shutdown hook array, whose element
67 * will be invoked in order during shutdown
68 * @params registerShutdownInProgress true to allow the hook
69 * to be registered even if the shutdown is in progress.
70 * @params hook the hook to be registered
71 *
72 * @throw IllegalStateException if shutdown is in progress and
73 * the slot is not valid to register.
74 */
75 void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
76
77 /**
78 * Returns the number of stack frames represented by the given throwable.
79 */
80 int getStackTraceDepth(Throwable t);
81
82 /**
83 * Returns the ith StackTraceElement for the given throwable.
84 */
85 StackTraceElement getStackTraceElement(Throwable t, int i);
86 }
|
66 * @params slot the slot in the shutdown hook array, whose element
67 * will be invoked in order during shutdown
68 * @params registerShutdownInProgress true to allow the hook
69 * to be registered even if the shutdown is in progress.
70 * @params hook the hook to be registered
71 *
72 * @throw IllegalStateException if shutdown is in progress and
73 * the slot is not valid to register.
74 */
75 void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook);
76
77 /**
78 * Returns the number of stack frames represented by the given throwable.
79 */
80 int getStackTraceDepth(Throwable t);
81
82 /**
83 * Returns the ith StackTraceElement for the given throwable.
84 */
85 StackTraceElement getStackTraceElement(Throwable t, int i);
86
87 /**
88 * Returns the murmur hash value for the specified String.
89 */
90 int getStringHash32(String string);
91 }
|