public class StrictCheckResultProcessor extends Object implements IVolumeResultProcessor<VolumeData>
VolumeData and throw an exception after
consecutive failures for strict events.| Constructor and Description |
|---|
StrictCheckResultProcessor(String errorMessage,
int errorLimit)
Create processor instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(VolumeData data)
Increment strict error counter in case of strict event and check the error limit
|
void |
onSuccess(VolumeData data)
Reset strict error counter in case of strict event
|
public StrictCheckResultProcessor(String errorMessage, int errorLimit)
errorMessage - the message for the exceptionerrorLimit - the consecutive error limitpublic void onSuccess(VolumeData data)
onSuccess in interface IVolumeResultProcessor<VolumeData>data - the processed data objectpublic void onFailure(VolumeData data)
onFailure in interface IVolumeResultProcessor<VolumeData>data - the processed data objectcom.itextpdf.licensekey.LicenseKeyException - if the counter becomes greater than specified error limitCopyright © 2020. All rights reserved.