Class SizeBasedRoutingOperation

  • All Implemented Interfaces:
    Operation

    public class SizeBasedRoutingOperation
    extends BaseUpdateOperation
    Sample operation that demonstrates how to process input documents differently based on the size of the input document. This is conceptually similar to how SizeLimitedUpdateOperation implementations work but this examples still processes documents whose size exceeds the limit where the size limited operations would automatically treat "large" documents as application errors. Note: "large" documents (generally anything over 1MB) should not be held in memory and should be processed using streams.