All notifications will disappear per default after 5 seconds, except the error message which sticky, unless re-configured.
Notification can be enriched with action buttons to trigger two kinds of actions:
Immediate actions are executed directly when the action button is triggered. The notification will dismiss immediately. This action type is suitable for action that don't need any processing time, e.g. calling a backend module.
Deferred actions are suitable for actions that need a period of time until they finish, e.g. AJAX calls. The notifications will close as soon the action has ended successfully. When invoked, the button will show a spinner icon to indicate some activity.