Class MemoryAppender

    • Constructor Detail

      • MemoryAppender

        public MemoryAppender()
        Default constructor for the memory appender
    • Method Detail

      • getEvents

        public List<MemoryLogRecordgetEvents​(long fromTimestamp)
        Get the logs from a given timestamp
        Parameters:
        fromTimestamp - If greater than 0, get the events more recent than this timestamp parameter. If equals or less than 0, returns all events
        Returns:
        The log events
      • getEvents

        public List<MemoryLogRecordgetEvents​(long fromTimestamp,
                                               List<String> filterCategories)
        Get the logs from a given timestamp and filtered by specific categories
        Parameters:
        fromTimestamp - If greater than 0, get the events more recent than this timestamp parameter. If equals or less than 0, returns all events
        filterCategories - The filter categories
        Returns:
        The log events
      • removeExpiredEvents

        public void removeExpiredEvents​(long from)
        Remove the expired log records every 10 seconds
        Parameters:
        from - The expiration date in milliseconds
      • close

        public void close()