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

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

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

origin: spring-projects/spring-batch

public void resetOffset() {
  getData().offset = 0;
}
origin: spring-projects/spring-batch

public int getOffset() {
  return getData().offset;
}
origin: spring-projects/spring-batch

public void incrementOffset() {
  ChunkMonitorData data = getData();
  data.offset ++;
  if (data.offset >= data.chunkSize) {
    resetOffset();
  }
}
origin: spring-projects/spring-batch

public void setChunkSize(int chunkSize) {
  getData().chunkSize = chunkSize;
  resetOffset();
}
origin: spring-projects/spring-batch

@Override
public void update(ExecutionContext executionContext) throws ItemStreamException {
  super.update(executionContext);
  if (streamsRegistered) {
    ChunkMonitorData data = getData();
    if (data.offset == 0) {
      // Only call the underlying update method if we are on a chunk
      // boundary
      stream.update(executionContext);
      executionContext.remove(getExecutionContextKey(OFFSET));
    }
    else {
      executionContext.putInt(getExecutionContextKey(OFFSET), data.offset);
    }
  }
}
origin: org.springframework.batch/spring-batch-core

public void resetOffset() {
  getData().offset = 0;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

public int getOffset() {
  return getData().offset;
}
origin: org.springframework.batch/org.springframework.batch.core

public int getOffset() {
  return getData().offset;
}
origin: org.springframework.batch/spring-batch-core

public int getOffset() {
  return getData().offset;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

public void resetOffset() {
  getData().offset = 0;
}
origin: org.springframework.batch/org.springframework.batch.core

public void resetOffset() {
  getData().offset = 0;
}
origin: org.springframework.batch/spring-batch-core

public void incrementOffset() {
  ChunkMonitorData data = getData();
  data.offset ++;
  if (data.offset >= data.chunkSize) {
    resetOffset();
  }
}
origin: apache/servicemix-bundles

public void incrementOffset() {
  ChunkMonitorData data = getData();
  data.offset ++;
  if (data.offset >= data.chunkSize) {
    resetOffset();
  }
}
origin: org.springframework.batch/org.springframework.batch.core

public void incrementOffset() {
  ChunkMonitorData data = getData();
  data.offset ++;
  if (data.offset >= data.chunkSize) {
    resetOffset();
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

public void incrementOffset() {
  ChunkMonitorData data = getData();
  data.offset ++;
  if (data.offset >= data.chunkSize) {
    resetOffset();
  }
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

public void setChunkSize(int chunkSize) {
  getData().chunkSize = chunkSize;
  resetOffset();
}
origin: org.springframework.batch/spring-batch-core

public void setChunkSize(int chunkSize) {
  getData().chunkSize = chunkSize;
  resetOffset();
}
origin: org.springframework.batch/org.springframework.batch.core

public void setChunkSize(int chunkSize) {
  getData().chunkSize = chunkSize;
  resetOffset();
}
origin: apache/servicemix-bundles

public void setChunkSize(int chunkSize) {
  getData().chunkSize = chunkSize;
  resetOffset();
}
origin: org.springframework.batch/org.springframework.batch.core

public void update(ExecutionContext executionContext) throws ItemStreamException {
  if (streamsRegistered) {
    ChunkMonitorData data = getData();
    if (data.offset == 0) {
      // Only call the underlying update method if we are on a chunk
      // boundary
      stream.update(executionContext);
    }
    else {
      executionContext.putInt(OFFSET, data.offset);
    }
  }
}
org.springframework.batch.core.step.itemChunkMonitorgetData

Popular methods of ChunkMonitor

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • From CI to AI: The AI layer in your organization
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