Package org.infinispan.protostream
Interface FileDescriptorSource.ProgressCallback
- Enclosing class:
- FileDescriptorSource
public static interface FileDescriptorSource.ProgressCallback
A callback interface that receives status notifications during the processing of files defined by a
FileDescriptorSource
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
handleError
(String fileName, DescriptorParserException exception) This is invoked when an error is encountered, possibly more thant once per file.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.
-
Method Details
-
handleError
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
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
-