Interface UserNotificationOperationBuilder.WithDuration<T>
-
- All Known Subinterfaces:
UserNotificationOperationBuilder.Alert
,UserNotificationOperationBuilder.Alert.Html
,UserNotificationOperationBuilder.Alert.Text
,UserNotificationOperationBuilder.Alert.WithMessage<T>
,UserNotificationOperationBuilder.Growl
,UserNotificationOperationBuilder.Growl.Html
,UserNotificationOperationBuilder.Growl.Text
,UserNotificationOperationBuilder.Growl.WithMessage<T>
- Enclosing interface:
- UserNotificationOperationBuilder
public static interface UserNotificationOperationBuilder.WithDuration<T>
This interface represents a specific builder to display a notification with a duration.- Since:
- 12.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
duration(java.time.Duration duration)
Sets the duration to display the notification.
-
-
-
Method Detail
-
duration
T duration(java.time.Duration duration) throws ValidationException
Sets the duration to display the notification. By default a notification has no duration and the agent has to close the notification manually.- Parameters:
duration
- the duration to display the notification- Returns:
- the specific
UserNotificationOperationBuilder
instance of type T - Throws:
ValidationException
- if the duration is not valid- Since:
- 12.13
-
-