Package org.opentcs.components.kernel.services

# Interface NotificationService

    public interface NotificationService

Provides methods concerning `UserNotification`s.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `java.util.List<UserNotification>` | `fetchUserNotifications​(java.util.function.Predicate<UserNotification> predicate)` | Returns a list of user notifications.
  `void` | `publishUserNotification​(UserNotification notification)` | Publishes a user notification.

- ## Method Details

  - ### fetchUserNotifications

    java.util.List<UserNotification> fetchUserNotifications​(java.util.function.Predicate<UserNotification> predicate) throws KernelRuntimeException
    Returns a list of user notifications.
    Parameters:
      `predicate` - A filter predicate that accepts the user notifications to be returned. May be `null` to return all existing user notifications.
    Returns:
      A list of user notifications.
    Throws:
      `KernelRuntimeException` - In case there is an exception executing this method.

  - ### publishUserNotification

    void publishUserNotification​(UserNotification notification) throws KernelRuntimeException
    Publishes a user notification.
    Parameters:
      `notification` - The notification to be published.
    Throws:
      `KernelRuntimeException` - In case there is an exception executing this method.