[ 
https://issues.apache.org/jira/browse/LOG4J2-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16333667#comment-16333667
 ] 

ASF subversion and git services commented on LOG4J2-2206:
---------------------------------------------------------

Commit d6e49482c337c98eb04b854d6876b4a370cce3a7 in logging-log4j2's branch 
refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=d6e4948 ]

[LOG4J2-2206] Add method
org.apache.logging.log4j.core.util.WatchManager.reset(File) and reset().
Also add Javadocs.

> Add method org.apache.logging.log4j.core.util.WatchManager.reset(File) and 
> reset()
> ----------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2206
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2206
>             Project: Log4j 2
>          Issue Type: New Feature
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>            Priority: Major
>             Fix For: 2.11.0
>
>
> Add methods {{org.apache.logging.log4j.core.util.WatchManager.reset(File)}} 
> and {{org.apache.logging.log4j.core.util.WatchManager.reset()}}:
> {code:java}
>     /**
>      * Resets all file monitors to their current last modified time. If this 
> manager does not watch any file, nothing
>      * happens.
>      * <p>
>      * This allows you to start, stop, reset and start again a manager, 
> without triggering file modified events if the a
>      * watched file has changed during the period of time when the manager 
> was stopped.
>      * </p>
>      * 
>      * @since 2.11.0
>      */
>     public void reset()
>     /**
>      * Resets the file monitor for the given file being watched to its 
> current last modified time. If this manager does
>      * not watch the given file, nothing happens.
>      * <p>
>      * This allows you to start, stop, reset and start again a manager, 
> without triggering file modified events if the
>      * given watched file has changed during the period of time when the 
> manager was stopped.
>      * </p>
>      * 
>      * @param file
>      *            the file for the monitor to reset.
>      * @since 2.11.0
>      */
>     public void reset(final File file)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to