Class StreamAuditEventListener

  • All Implemented Interfaces:
    javax.transaction.Synchronization, EventListener

    public class StreamAuditEventListener
    extends Object
    implements EventListener, javax.transaction.Synchronization
    An events collector that write log entries as json record into a stream.
    Since:
    9.3
    • Constructor Detail

      • StreamAuditEventListener

        public StreamAuditEventListener()
    • Method Detail

      • beforeCompletion

        public void beforeCompletion()
        Specified by:
        beforeCompletion in interface javax.transaction.Synchronization
      • afterCompletion

        public void afterCompletion​(int status)
        Specified by:
        afterCompletion in interface javax.transaction.Synchronization
      • writeEntries

        protected void writeEntries()
      • getPartitionKey

        protected String getPartitionKey()
      • getTimestampForEntry

        protected long getTimestampForEntry​(LogEntry entry)
      • registerSynchronization

        protected boolean registerSynchronization​(javax.transaction.Synchronization sync)