Package ej.rcommand

Interface RemoteNotification

  • All Known Implementing Classes:
    EventAvailableNotification

    public interface RemoteNotification
    The RemoteNotification class represents a notification sent by the RemoteCommandManager to a RemoteCommandClient. Notifications may be sent by the manager without any action from the client and do not expect a response or an acknowledgment.
    • 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.