public interface ClientCommandSenderStateListener
ClientCommandSender. A state change
is either one in which the sender goes from sending-to-not-sending or from not-sending-to-sending.
Add implementations of this listener to a sender object via
ClientCommandSender.addStateListener(ClientCommandSenderStateListener, boolean)
| Modifier and Type | Method and Description |
|---|---|
boolean |
startedSending(ClientCommandSender sender)
The notification method that is called when the sender this object is listening to has started sending commands
to its remote endpoint.
|
boolean |
stoppedSending(ClientCommandSender sender)
The notification method that is called when the sender this object is listening to has stopped sending commands
to its remote endpoint.
|
boolean startedSending(ClientCommandSender sender)
If the listener wants to keep listening, it must return true. If this method throws an exception,
it is the same as if false is returned; that is, it will be removed and thus no longer receive
notifications.
sender - the sender that emitted the notificationtrue if this listener wants to keep listening for state changes; false if the
listener no longer wishes to listen for state changes and should be removed from the sender's list of
listeners.boolean stoppedSending(ClientCommandSender sender)
If the listener wants to keep listening, it must return true. If this method throws an exception,
it is the same as if false is returned; that is, it will be removed and thus no longer receive
notifications.
sender - true if this listener wants to keep listening for state changes; false if the
listener no longer wishes to listen for state changes and should be removed from the sender's list of
listeners.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.