Package org.infinispan.protostream
Interface FileDescriptorSource.ProgressCallback
-
- Enclosing class:
- FileDescriptorSource
public static interface FileDescriptorSource.ProgressCallbackA callback interface that receives status notifications during the processing of files defined by aFileDescriptorSource.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidhandleError(String fileName, DescriptorParserException exception)This is invoked when an error is encountered, possibly more thant once per file.default voidhandleSuccess(String fileName)This is invoked at most once per file, at the end of the parsing of a file, if it completed successfully.
-
-
-
Method Detail
-
handleError
default void handleError(String fileName, DescriptorParserException exception)
This is invoked when an error is encountered, possibly more thant once per file.- Parameters:
fileName- the name of the file that failedexception- the error
-
handleSuccess
default void handleSuccess(String fileName)
This is invoked at most once per file, at the end of the parsing of a file, if it completed successfully.- Parameters:
fileName- the name of the file that was parsed successfully
-
-