Interface NotificationOptions

    • Method Detail

      • getExecutor

        java.util.concurrent.Executor getExecutor​()
        Returns:
        the executor used to execute an asynchronous event
      • get

        java.lang.Object get​(java.lang.String optionName)
        Parameters:
        optionName - name of the option to get value of
        Returns:
        the value of an option or null if no option for the given name exists
      • ofExecutor

        static NotificationOptions ofExecutor​(java.util.concurrent.Executor executor)
        Parameters:
        executor - a specific Executor to handle observer notification
        Returns:
        an immutable holder of an executor
      • of

        static NotificationOptions of​(java.lang.String optionName,
                                      java.lang.Object optionValue)
        Parameters:
        optionName - name of the option to set
        optionValue - value for the option
        Returns:
        an immutable holder of a single option