Document thread-safety for ingest processors

With this commit we document that ingest processors need to be
thread-safe. Previously this could be inferred from reading the
source code but we got several user questions about this so
it is stated explicitly in the Javadocs of Processor now.
This commit is contained in:
Daniel Mitterdorfer 2016-12-06 10:07:51 +01:00
parent 26cbda41ea
commit a02bc8ed1c
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ import java.util.Map;
/**
* A processor implementation may modify the data belonging to a document.
* Whether changes are made and what exactly is modified is up to the implementation.
*
* Processors may get called concurrently and thus need to be thread-safe.
*/
public interface Processor {