|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShutdownCapability
Capability for repositories that require special attention with the Java virtual machine exits.
| Method Summary | |
|---|---|
boolean |
isAutoShutdownEnabled()
Returns true if repository has a shutdown hook registered to automatically call shutdown when the virtual machine exits. |
void |
setAutoShutdownEnabled(boolean enabled)
Request to enable or disable the automatic shutdown hook. |
void |
shutdown()
Similar to calling close on a repository, except should only be called when the virtual machine is in the process of shutting down. |
| Method Detail |
|---|
boolean isAutoShutdownEnabled()
void setAutoShutdownEnabled(boolean enabled)
SecurityException - if caller does not have permissionvoid shutdown()
Repositories may choose to implement this method by simply calling close. There is no guarantee that shutdown will reduce exceptions, and it might not suspend any threads. Also, repositories that require proper shutdown should automatically register runtime hooks, and so this method usually doesn't need to be called manually.
SecurityException - if caller does not have permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||