Tabnine Logo
ChunkMonitor.registerItemStream
Code IndexAdd Tabnine to your IDE (free)

How to use
registerItemStream
method
in
org.springframework.batch.core.step.item.ChunkMonitor

Best Java code snippets using org.springframework.batch.core.step.item.ChunkMonitor.registerItemStream (Showing top 6 results out of 315)

origin: spring-projects/spring-batch

@Override
public AbstractTaskletStepBuilder<SimpleStepBuilder<I, O>> stream(ItemStream stream) {
  if (stream instanceof ItemReader<?>) {
    if (!streamIsReader) {
      streamIsReader = true;
      super.stream(chunkMonitor);
    }
    // In cases where multiple nested item readers are registered,
    // they all want to get the open() and close() callbacks.
    chunkMonitor.registerItemStream(stream);
  }
  else {
    super.stream(stream);
  }
  return this;
}
origin: spring-projects/spring-batch

@Before
public void setUp() {
  monitor.setItemReader(new ItemReader<String>() {
    @Override
    public String read() throws Exception, UnexpectedInputException, ParseException {
      return "" + (count++);
    }
  });
  monitor.registerItemStream(new ItemStreamSupport() {
    @Override
    public void close() {
      super.close();
      closed = true;
    }
  });
  monitor.setChunkSize(CHUNK_SIZE);
}
origin: org.springframework.batch/spring-batch-core

@Override
public AbstractTaskletStepBuilder<SimpleStepBuilder<I, O>> stream(ItemStream stream) {
  if (stream instanceof ItemReader<?>) {
    if (!streamIsReader) {
      streamIsReader = true;
      super.stream(chunkMonitor);
    }
    // In cases where multiple nested item readers are registered,
    // they all want to get the open() and close() callbacks.
    chunkMonitor.registerItemStream(stream);
  }
  else {
    super.stream(stream);
  }
  return this;
}
origin: apache/servicemix-bundles

@Override
public AbstractTaskletStepBuilder<SimpleStepBuilder<I, O>> stream(ItemStream stream) {
  if (stream instanceof ItemReader<?>) {
    if (!streamIsReader) {
      streamIsReader = true;
      super.stream(chunkMonitor);
    }
    // In cases where multiple nested item readers are registered,
    // they all want to get the open() and close() callbacks.
    chunkMonitor.registerItemStream(stream);
  }
  else {
    super.stream(stream);
  }
  return this;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

@Override
public AbstractTaskletStepBuilder<SimpleStepBuilder<I, O>> stream(ItemStream stream) {
  if (stream instanceof ItemReader<?>) {
    if (!streamIsReader) {
      streamIsReader = true;
      super.stream(chunkMonitor);
    }
    // In cases where multiple nested item readers are registered,
    // they all want to get the open() and close() callbacks.
    chunkMonitor.registerItemStream(stream);
  }
  else {
    super.stream(stream);
  }
  return this;
}
origin: org.springframework.batch/org.springframework.batch.core

if (stream instanceof ItemReader<?>) {
  streamIsReader = true;
  chunkMonitor.registerItemStream(stream);
org.springframework.batch.core.step.itemChunkMonitorregisterItemStream

Popular methods of ChunkMonitor

  • incrementOffset
  • resetOffset
  • setChunkSize
  • setItemReader
  • getData
  • getExecutionContextKey
  • setExecutionContextName
  • <init>
  • close
  • getOffset
  • open
  • update
  • open,
  • update

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now