public interface ShutdownCapability extends Capability
Modifier and Type | Method and Description |
---|---|
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.
|
boolean isAutoShutdownEnabled()
void setAutoShutdownEnabled(boolean enabled)
java.lang.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.
java.lang.SecurityException
- if caller does not have permissionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.