Package ej.rcommand
Interface RemoteNotification
-
- All Known Implementing Classes:
EventAvailableNotification
public interface RemoteNotificationTheRemoteNotificationclass represents a notification sent by theRemoteCommandManagerto aRemoteCommandClient. 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.voidwriteBody(CommandSender commandSender)Writes the body of the notification using the given command sender.
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the notification.- Returns:
- the notification name.
-
writeBody
void writeBody(CommandSender commandSender) throws IOException
Writes the body of the notification using the given command sender.- Parameters:
commandSender- the command sender to use to write the notification body.- Throws:
IOException- if an exception occurs while writing the notification body.
-
-