You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/07/22 16:58:28 UTC
svn commit: r966699 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
Author: davsclaus
Date: Thu Jul 22 14:58:28 2010
New Revision: 966699
URL: http://svn.apache.org/viewvc?rev=966699&view=rev
Log:
CAMEL-2979: Fixed if prePollCheck returns false to break out.
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java?rev=966699&r1=966698&r2=966699&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/file/GenericFileConsumer.java Thu Jul 22 14:58:28 2010
@@ -71,6 +71,7 @@ public abstract class GenericFileConsume
if (log.isDebugEnabled()) {
log.debug("Skipping pool as pre poll check returned false");
}
+ return;
}
// gather list of files to process
@@ -211,18 +212,16 @@ public abstract class GenericFileConsume
}
/**
- * Override if required. Perform some checks (and perhaps actions) before we
- * poll.
+ * Override if required. Perform some checks (and perhaps actions) before we poll.
*
- * @return true to poll, false to skip this poll.
+ * @return <tt>true</tt> to poll, <tt>false</tt> to skip this poll.
*/
protected boolean prePollCheck() throws Exception {
return true;
}
/**
- * Override if required. Perform some checks (and perhaps actions) after we
- * have polled.
+ * Override if required. Perform some checks (and perhaps actions) after we have polled.
*/
protected void postPollCheck() {
// noop