Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 761B6C961 for ; Fri, 1 Jun 2012 17:31:08 +0000 (UTC) Received: (qmail 60293 invoked by uid 500); 1 Jun 2012 17:31:08 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 60246 invoked by uid 500); 1 Jun 2012 17:31:08 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 60238 invoked by uid 99); 1 Jun 2012 17:31:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 17:31:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 17:31:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C48F92388A33 for ; Fri, 1 Jun 2012 17:30:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1345280 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java Date: Fri, 01 Jun 2012 17:30:46 -0000 To: commits@commons.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120601173046.C48F92388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Fri Jun 1 17:30:46 2012 New Revision: 1345280 URL: http://svn.apache.org/viewvc?rev=1345280&view=rev Log: Rename delay to delayMillis for param name, Javadoc, and private ivar; accessor remains the same. Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java?rev=1345280&r1=1345279&r2=1345280&view=diff ============================================================================== --- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java (original) +++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/Tailer.java Fri Jun 1 17:30:46 2012 @@ -123,7 +123,7 @@ public class Tailer implements Runnable /** * The amount of time to wait for the file to be updated. */ - private final long delay; + private final long delayMillis; /** * Whether to tail from the end or start of file @@ -153,35 +153,35 @@ public class Tailer implements Runnable * Creates a Tailer for the given file, starting from the beginning. * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. */ - public Tailer(File file, TailerListener listener, long delay) { - this(file, listener, delay, false); + public Tailer(File file, TailerListener listener, long delayMillis) { + this(file, listener, delayMillis, false); } /** * Creates a Tailer for the given file, with a delay other than the default 1.0s. * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file. */ - public Tailer(File file, TailerListener listener, long delay, boolean end) { - this(file, listener, delay, end, DEFAULT_BUFSIZE); + public Tailer(File file, TailerListener listener, long delayMillis, boolean end) { + this(file, listener, delayMillis, end, DEFAULT_BUFSIZE); } /** * Creates a Tailer for the given file, with a specified buffer size. * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file. * @param bufSize Buffer size */ - public Tailer(File file, TailerListener listener, long delay, boolean end, int bufSize) { + public Tailer(File file, TailerListener listener, long delayMillis, boolean end, int bufSize) { this.file = file; - this.delay = delay; + this.delayMillis = delayMillis; this.end = end; this.inbuf = new byte[bufSize]; @@ -196,13 +196,13 @@ public class Tailer implements Runnable * * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file. - * @param buffer size. + * @param bufSize buffer size. * @return The new tailer */ - public static Tailer create(File file, TailerListener listener, long delay, boolean end, int bufSize) { - Tailer tailer = new Tailer(file, listener, delay, end, bufSize); + public static Tailer create(File file, TailerListener listener, long delayMillis, boolean end, int bufSize) { + Tailer tailer = new Tailer(file, listener, delayMillis, end, bufSize); Thread thread = new Thread(tailer); thread.setDaemon(true); thread.start(); @@ -214,12 +214,12 @@ public class Tailer implements Runnable * * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file. * @return The new tailer */ - public static Tailer create(File file, TailerListener listener, long delay, boolean end) { - return create(file, listener, delay, end, DEFAULT_BUFSIZE); + public static Tailer create(File file, TailerListener listener, long delayMillis, boolean end) { + return create(file, listener, delayMillis, end, DEFAULT_BUFSIZE); } /** @@ -227,11 +227,11 @@ public class Tailer implements Runnable * * @param file the file to follow. * @param listener the TailerListener to use. - * @param delay the delay between checks of the file for new content in milliseconds. + * @param delayMillis the delay between checks of the file for new content in milliseconds. * @return The new tailer */ - public static Tailer create(File file, TailerListener listener, long delay) { - return create(file, listener, delay, false); + public static Tailer create(File file, TailerListener listener, long delayMillis) { + return create(file, listener, delayMillis, false); } /** @@ -256,12 +256,12 @@ public class Tailer implements Runnable } /** - * Return the delay. + * Return the delay in milliseconds. * - * @return the delay + * @return the delay in milliseconds. */ public long getDelay() { - return delay; + return delayMillis; } /** @@ -282,7 +282,7 @@ public class Tailer implements Runnable if (reader == null) { try { - Thread.sleep(delay); + Thread.sleep(delayMillis); } catch (InterruptedException e) { } } else { @@ -342,7 +342,7 @@ public class Tailer implements Runnable } } try { - Thread.sleep(delay); + Thread.sleep(delayMillis); } catch (InterruptedException e) { } }