public interface ShellStatusProvider
Implementations are not required to provide any guarantees with respect to the order in which notifications are delivered to listeners.
Implementations must permit modification of the listener list, even while delivering event notifications to listeners. However, listeners do not receive any guarantee that their addition or removal from the listener list will be effective or not for any event notification that is currently proceeding.
Implementations must ensure that status notifications are only delivered when an actual change has taken place.
Modifier and Type | Method and Description |
---|---|
void |
addShellStatusListener(ShellStatusListener shellStatusListener)
Registers a new status listener.
|
ShellStatus |
getShellStatus()
Returns the current shell status.
|
void |
removeShellStatusListener(ShellStatusListener shellStatusListener)
Removes an existing status listener.
|
void addShellStatusListener(ShellStatusListener shellStatusListener)
shellStatusListener
- to register (cannot be null)void removeShellStatusListener(ShellStatusListener shellStatusListener)
If the presented status listener is not found, the method returns without exception.
shellStatusListener
- to remove (cannot be null)ShellStatus getShellStatus()