Example usage for org.springframework.batch.repeat RepeatContext setTerminateOnly

List of usage examples for org.springframework.batch.repeat RepeatContext setTerminateOnly

Introduction

In this page you can find the example usage for org.springframework.batch.repeat RepeatContext setTerminateOnly.

Prototype

void setTerminateOnly();

Source Link

Document

Signal to the framework that the current batch should complete abnormally, independent of the current CompletionPolicy .

Usage

From source file:org.ohdsi.webapi.TerminateJobStepExceptionHandler.java

@Override
public void handleException(RepeatContext rc, Throwable thrwbl) throws Throwable {
    rc.setTerminateOnly();
}