public interface ShutdownNotifier
ShutdownListener
,
ShutdownSignalException
Modifier and Type | Method and Description |
---|---|
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.
|
void addShutdownListener(ShutdownListener listener)
listener
- ShutdownListener
to the componentvoid removeShutdownListener(ShutdownListener listener)
listener
- ShutdownListener
to be removedShutdownSignalException getCloseReason()
void notifyListeners()
ShutdownListener
boolean isOpen()
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.