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
    • Method Detail

      • hasWaitingFor

        boolean hasWaitingFor()
        Indicates of the ServerEvent has already been waiting for send.
        Returns:
        true if it has already, false otherwise.
      • markAsWaitingFor

        void markAsWaitingFor()
        Indicates that the ServerEvent will be waiting for a while before to be sent.