/** * * @return notification options with {@value #MODE} set to {@link NotificationMode#PARALLEL} */ static NotificationOptions withParallelMode() { return NotificationOptions.builder().set(MODE, NotificationMode.PARALLEL).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }
/** * * @return notification options with {@value #MODE} set to {@link NotificationMode#PARALLEL} */ static NotificationOptions withParallelMode() { return NotificationOptions.builder().set(MODE, NotificationMode.PARALLEL).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @return notification options with {@value #MODE} set to {@link NotificationMode#PARALLEL} */ static NotificationOptions withParallelMode() { return NotificationOptions.builder().set(MODE, NotificationMode.PARALLEL).build(); }
/** * * @return notification options with {@value #MODE} set to {@link NotificationMode#PARALLEL} */ static NotificationOptions withParallelMode() { return NotificationOptions.builder().set(MODE, NotificationMode.PARALLEL).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param timeout The timeout in milliseconds * @return notification options with {@value #TIMEOUT} set */ static NotificationOptions withTimeout(long timeout) { return NotificationOptions.builder().set(TIMEOUT, timeout).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param timeout The timeout in milliseconds * @return notification options with {@value #TIMEOUT} set */ static NotificationOptions withTimeout(long timeout) { return NotificationOptions.builder().set(TIMEOUT, timeout).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }
/** * * @param timeout The timeout in milliseconds * @return notification options with {@value #TIMEOUT} set */ static NotificationOptions withTimeout(long timeout) { return NotificationOptions.builder().set(TIMEOUT, timeout).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param executor a specific {@link Executor} to handle observer notification * @return an immutable holder of an executor */ static NotificationOptions ofExecutor(Executor executor) { return builder().setExecutor(executor).build(); }
/** * * @param optionName name of the option to set * @param optionValue value for the option * @return an immutable holder of a single option */ static NotificationOptions of(String optionName, Object optionValue) { return builder().set(optionName, optionValue).build(); }