Interface SendEveryAmountOfTime
-
- All Superinterfaces:
ServerEvent
,StoreLastOnly
- All Known Implementing Classes:
UserSessionServerEvent
public interface SendEveryAmountOfTime extends StoreLastOnly
If an event implements this interface, its sending is performed by a JOB which is triggered every an amount of time. It permits to limit the load when lot of event can be thrown.It has no impact about store management.
This behavior is only possible with
StoreLastOnly
behavior.- Author:
- Yohann Chastagnier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.notification.sse.ServerEvent
ServerEvent.ServerEventName
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasWaitingFor()
Indicates of theServerEvent
has already been waiting for send.void
markAsWaitingFor()
Indicates that theServerEvent
will be waiting for a while before to be sent.-
Methods inherited from interface org.silverpeas.core.notification.sse.ServerEvent
getData, getId, getName, isConcerned, isValidId, send, subType
-
Methods inherited from interface org.silverpeas.core.notification.sse.behavior.StoreLastOnly
getStoreDiscriminator
-
-
-
-
Method Detail
-
hasWaitingFor
boolean hasWaitingFor()
Indicates of theServerEvent
has already been waiting for send.- Returns:
- true if it has already, false otherwise.
-
markAsWaitingFor
void markAsWaitingFor()
Indicates that theServerEvent
will be waiting for a while before to be sent.
-
-