Example usage for org.springframework.batch.item ItemStream interface-usage

List of usage examples for org.springframework.batch.item ItemStream interface-usage

Introduction

In this page you can find the example usage for org.springframework.batch.item ItemStream interface-usage.

Usage

From source file io.spring.recommendation.service.AbstractCachingExistsService.java

/**
 * @author Michael Minella
 */
public abstract class AbstractCachingExistsService<T> implements ExistsService<T>, ItemStream {

    private Map<String, Boolean> cache;

From source file org.opensourcebank.batch.reader.HazelcastMapItemReader.java

/**
 * <p>An {@link ItemReader} that given a map name, pulls data item by item from a Hazelcast (distributed) Map.</p>
 *
 * <p>This reader makes two assumptions:
 *
 *                1. Keys are {@link Long},

From source file org.emonocot.harvest.common.DirectoryReader.java

public class DirectoryReader implements ItemReader<File>, ItemStream {

    private File[] files;

    private int currentCount;

From source file de.langmi.spring.batch.examples.complex.file.renamefile.simple.SimpleItemReader.java

/**
 * SimpleItemReader - is not threadsafe, uses testdata.
 * Takes the first item to create the file name to be used
 * for renaming the original output file.
 * 
 * @author Michael R. Lange <michael.r.lange@langmi.de>

From source file biz.c24.io.spring.batch.processor.C24ValidatingItemProcessor.java

/**
 * An ItemProcessor that validates a ComplexDataObject.
 * While no changes are made to the ComplexDataObject, it does allow an ItemProcessorListener to be 
 * wired in to catch any ComplexDataObjects which fail validation.
 * 
 * @author AndrewElmore

From source file org.sift.batch.tuple.MultiThreadedMultiResourceItemReader.java

/**
 * The <code>MultiThreadedMultiResourceItemReader</code> class is an implementation of the Spring {@link ItemReader}, {@link ItemStream} interfaces
 * that reads batch step input data from multiple configured {@link Resource} instances. This class may be used in step configurations that use {@link ThreadPoolTaskExecutor}
 * i.e. can be used in multi-threaded reads. This class serializes access on {@link ItemReader#read()} across calling threads.
 * 
 * @author Regunath B

From source file org.beanio.spring.BeanIOFlatFileItemWriter.java

/**
 * A Spring Batch item writer that uses a BeanIO stream mapping file to write items 
 * to a flat file.  Restart capabilities are fully supported.
 * 
 * <p>This implementation requires Spring 2.5 or greater, and Spring Batch 2.1.x.</p>
 *  

From source file fr.acxio.tools.agia.file.ExtendedMultiResourceItemReader.java

public class ExtendedMultiResourceItemReader<T> implements ItemReader<T>, ItemStream {

    private static final Log LOGGER = LogFactory.getLog(ExtendedMultiResourceItemReader.class);

    private static final String RESOURCE_KEY = "resourceIndex";

From source file org.springframework.batch.integration.chunk.ChunkMessageChannelItemWriter.java

public class ChunkMessageChannelItemWriter<T> extends StepExecutionListenerSupport
        implements ItemWriter<T>, ItemStream, StepContributionSource {

    private static final Log logger = LogFactory.getLog(ChunkMessageChannelItemWriter.class);

    static final String ACTUAL = ChunkMessageChannelItemWriter.class.getName() + ".ACTUAL";

From source file es.fcs.batch.integration.chunk.MyChunkMessageChannelItemWriter.java

public class MyChunkMessageChannelItemWriter<T> extends StepExecutionListenerSupport
        implements ItemWriter<T>, ItemStream, StepContributionSource {

    private static final Log logger = LogFactory.getLog(MyChunkMessageChannelItemWriter.class);

    static final String ACTUAL = MyChunkMessageChannelItemWriter.class.getName() + ".ACTUAL";