RESOLVED - BATCH-1244: Documentation error for skip-limit
This commit is contained in:
@@ -507,8 +507,9 @@
|
||||
records are logged as well, which will be covered later when discussing
|
||||
listeners.<programlisting>
|
||||
<step id="step1">
|
||||
<tasklet <emphasis role="bold">skip-limit="10"</emphasis>>
|
||||
<chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10">
|
||||
<tasklet>
|
||||
<chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10" <emphasis
|
||||
role="bold">skip-limit="10"</emphasis>>
|
||||
<emphasis role="bold"><skippable-exception-classes>
|
||||
org.springframework.batch.item.file.FlatFileParseException
|
||||
</skippable-exception-classes></emphasis>
|
||||
@@ -537,8 +538,9 @@
|
||||
identify which exceptions should cause failure and skip everything
|
||||
else:<programlisting>
|
||||
<step id="step1">
|
||||
<tasklet <emphasis role="bold">skip-limit="10"</emphasis>>
|
||||
<chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10">
|
||||
<tasklet>
|
||||
<chunk reader="flatFileItemReader" writer="itemWriter" commit-interval="10" <emphasis
|
||||
role="bold">skip-limit="10"</emphasis>>
|
||||
<emphasis role="bold"> <skippable-exception-classes>
|
||||
java.lang.Exception
|
||||
</skippable-exception-classes>
|
||||
@@ -1035,16 +1037,14 @@
|
||||
<classname>ItemWriter</classname>. Spring Batch provides the
|
||||
<classname>TaskletStep</classname> for this scenario.</para>
|
||||
|
||||
<para>The <classname>Tasklet</classname> is a simple interface
|
||||
that has one method, <methodname>execute</methodname>, which will
|
||||
be a called repeatedly by the <classname>TaskletStep</classname>
|
||||
until it either returns <literal>RepeatStatus.FINISHED</literal>
|
||||
or throws an exception to signal a failure. Each call to
|
||||
the <classname>Tasklet</classname> is wrapped in a
|
||||
transaction. <classname>Tasklet</classname> implementors might
|
||||
call a stored procedure, a script, or a simple SQL update
|
||||
statement. To create a
|
||||
<classname>TaskletStep</classname>, the 'ref' attribute of the
|
||||
<para>The <classname>Tasklet</classname> is a simple interface that has
|
||||
one method, <methodname>execute</methodname>, which will be a called
|
||||
repeatedly by the <classname>TaskletStep</classname> until it either
|
||||
returns <literal>RepeatStatus.FINISHED</literal> or throws an exception to
|
||||
signal a failure. Each call to the <classname>Tasklet</classname> is
|
||||
wrapped in a transaction. <classname>Tasklet</classname> implementors
|
||||
might call a stored procedure, a script, or a simple SQL update statement.
|
||||
To create a <classname>TaskletStep</classname>, the 'ref' attribute of the
|
||||
<tasket/> element should reference a bean defining a
|
||||
<classname>Tasklet</classname> object; no <chunk/> element should be
|
||||
used within the <tasket/>:</para>
|
||||
|
||||
Reference in New Issue
Block a user