adds a shutdownhook with a priority , the higher the priority the earlier will run . shutdownhooks with same priority run in a non-deterministic order . concode_field_sep Runnable hook concode_elem_sep AtomicBoolean shutdownInProgress concode_elem_sep ShutdownHookManager MGR concode_elem_sep Log LOG concode_elem_sep int priority concode_elem_sep Set<HookEntry> hooks concode_field_sep boolean isShutdownInProgress concode_elem_sep boolean hasShutdownHook concode_elem_sep int hashCode concode_elem_sep List<Runnable> getShutdownHooksInOrder concode_elem_sep ShutdownHookManager get concode_elem_sep boolean equals concode_elem_sep boolean removeShutdownHook concode_elem_sep void run
void function ( Runnable arg0 , int arg1 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } if ( shutdownInProgress . get ( ) ) { throw new IllegalStateException ( "srini_string" ) ; } hooks . add ( new HookEntry ( arg0 , arg1 ) ) ; }