Class EventAccumulatorImpl

    • Method Detail

      • emitEvents

        public void emitEvents​(Transaction transaction,
                               String baseUrl,
                               String userAgent)
        Description copied from interface: EventAccumulator
        Emits all of the events that were accumulated within the transaction. Multiple events affecting the same resource are combined into a single event.

        This method SHOULD NOT throw an exception if an event fails to be emitted. It should always attempt to emit all events accumulated within a transaction.

        Specified by:
        emitEvents in interface EventAccumulator
        transaction - the transaction
        baseUrl - the baseUrl of the requests
        userAgent - the user-agent of the user making the requests
      • clearEvents

        public void clearEvents​(Transaction transaction)
        Description copied from interface: EventAccumulator
        Removes all of a transaction's accumulated events without emitting them. This must be called when a transaction is rolled back.
        Specified by:
        clearEvents in interface EventAccumulator
        transaction - the id of the transaction