Class AbstractFileAppender<M extends OutputStreamManager>

    • Field Detail

      • fileName

        private final java.lang.String fileName
      • advertisement

        private final java.lang.Object advertisement
    • Constructor Detail

      • AbstractFileAppender

        private AbstractFileAppender​(java.lang.String name,
                                     Layout<? extends java.io.Serializable> layout,
                                     Filter filter,
                                     M manager,
                                     java.lang.String filename,
                                     boolean ignoreExceptions,
                                     boolean immediateFlush,
                                     Advertiser advertiser,
                                     Property[] properties)
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Returns the file name this appender is associated with.
        Returns:
        The File name.
      • stop

        public boolean stop​(long timeout,
                            java.util.concurrent.TimeUnit timeUnit)
        Description copied from class: AbstractFilterable
        Cleanup the Filter.
        Specified by:
        stop in interface LifeCycle2
        Overrides:
        stop in class AbstractOutputStreamAppender<M extends OutputStreamManager>
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.