Package ej.rcommand
Interface RemoteNotificationListener
-
- All Known Implementing Classes:
EventAvailableNotificationListener
public interface RemoteNotificationListenerTheRemoteNotificationListenerclass handles the notifications sent by aRemoteCommandManagerto theRemoteCommandClient. Notifications may be sent by the manager without any action from the client and do not expect a response or an acknowledgment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name of the notification managed by this listener.voidnotificationReceived(CommandReader commandReader)Handles the notification.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the notification managed by this listener.- Returns:
- the name of the notification managed by this listener.
-
notificationReceived
void notificationReceived(CommandReader commandReader)
Handles the notification. The body of the notification may be read by using the given command reader.- Parameters:
commandReader- the command reader to use to read the notification body.
-
-