public class VmShutdownListener extends Object
NOTE: In order to prevent a proliferation of shutdown hooks, it is advisable to use instances as singletons only.
This component should be used by long-running, but interruptable processes.
Modifier and Type | Class and Description |
---|---|
static class |
VmShutdownListener.VmShutdownException
Message carrier to break out of loops using the callback.
|
Constructor and Description |
---|
VmShutdownListener(String name)
Constructs this instance to listen to the VM shutdown call.
|
public VmShutdownListener(String name)
Copyright © 2005–2015 Alfresco Software. All rights reserved.