Interface TransactionAwareEvent

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getId()
      Returns a unique id.
      boolean publishOnCommitOnly()
      Decide whether this event should be broadcasted/received delayed on commit or directly this is useful if you want to publish custom event depending on the success of a running transaction if no transaction is running, the event is being sent immediately.
    • Method Detail

      • publishOnCommitOnly

        boolean publishOnCommitOnly()
        Decide whether this event should be broadcasted/received delayed on commit or directly this is useful if you want to publish custom event depending on the success of a running transaction if no transaction is running, the event is being sent immediately.
      • getId

        java.lang.Object getId()
        Returns a unique id. Two events with the same id in the same transaction will not get published twice.
        Returns:
        the id