public class AlertStorage extends LockSupport implements Serializable, OptimizedSessionPersistedObject
Constructor and Description |
---|
AlertStorage() |
Modifier and Type | Method and Description |
---|---|
void |
add(Alert alert) |
boolean |
checkAndResetDirtyMarker() |
void |
dismiss(long alertId)
Dismisses a single Alert, if present.
|
void |
dismissAll()
Dismisses all Alerts.
|
void |
dismissNonPersistent()
Dismisses non-persistent Alerts; this is useful after rendering the
Alerts
component. |
List<Alert> |
getAlerts()
Returns all stored alerts.
|
acquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
public AlertStorage()
public boolean checkAndResetDirtyMarker()
checkAndResetDirtyMarker
in interface OptimizedSessionPersistedObject
public void dismissAll()
public void dismissNonPersistent()
Alerts
component.public void dismiss(long alertId)
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.