|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShutdownNotifier
Interface for components that are shutdown capable and that allow listeners to be added for shutdown signals
ShutdownListener
,
ShutdownSignalException
Method Summary | |
---|---|
void |
addShutdownListener(ShutdownListener listener)
Add shutdown listener. |
ShutdownSignalException |
getCloseReason()
Get the shutdown reason object |
boolean |
isOpen()
Determine whether the component is currently open. |
void |
notifyListeners()
Protected API - notify the listeners attached to the component |
void |
removeShutdownListener(ShutdownListener listener)
Remove shutdown listener for the component. |
Method Detail |
---|
void addShutdownListener(ShutdownListener listener)
listener
- ShutdownListener
to the componentvoid removeShutdownListener(ShutdownListener listener)
listener
- ShutdownListener
to be removedShutdownSignalException getCloseReason()
void notifyListeners()
ShutdownListener
boolean isOpen()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |