Tabnine Logo
ResourceAwareItemWriterItemStream.update
Code IndexAdd Tabnine to your IDE (free)

How to use
update
method
in
org.springframework.batch.item.file.ResourceAwareItemWriterItemStream

Best Java code snippets using org.springframework.batch.item.file.ResourceAwareItemWriterItemStream.update (Showing top 5 results out of 315)

origin: spring-projects/spring-batch

@Override
public void update(ExecutionContext executionContext) throws ItemStreamException {
  super.update(executionContext);
  if (saveState) {
    if (opened) {
      delegate.update(executionContext);
    }
    executionContext.putInt(getExecutionContextKey(CURRENT_RESOURCE_ITEM_COUNT), currentResourceItemCount);
    executionContext.putInt(getExecutionContextKey(RESOURCE_INDEX_KEY), resourceIndex);
  }
}
origin: com.github.almex/raildelays-batch

@Override
public void update(ExecutionContext executionContext) throws ItemStreamException {
  delegate.update(executionContext);
}
origin: com.github.almex/raildelays-batch

@Override
public void update(ExecutionContext executionContext) {
  if (isSaveState()) {
    if (opened) {
      delegate.update(executionContext);
    }
    try {
      if (resource != null) {
        executionContext.putString(getExecutionContextKey(RESOURCE_KEY), resource.getFile().getAbsolutePath());
        LOGGER.trace("We store the resource={} into the execution context", resource.getFile().getAbsolutePath());
      }
    } catch (IOException e) {
      throw new ItemStreamException("Cannot get resource's absolute path", e);
    }
  }
}
origin: com.github.almex/raildelays-batch

delegate.update(executionContext);
opened = false;
origin: apache/servicemix-bundles

@Override
public void update(ExecutionContext executionContext) throws ItemStreamException {
  super.update(executionContext);
  if (saveState) {
    if (opened) {
      delegate.update(executionContext);
    }
    executionContext.putInt(getExecutionContextKey(CURRENT_RESOURCE_ITEM_COUNT), currentResourceItemCount);
    executionContext.putInt(getExecutionContextKey(RESOURCE_INDEX_KEY), resourceIndex);
  }
}
org.springframework.batch.item.fileResourceAwareItemWriterItemStreamupdate

Popular methods of ResourceAwareItemWriterItemStream

  • close
  • open
  • setResource
  • write

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Notification (javax.management)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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