Class SizeLimitedUpdateOperation

  • All Implemented Interfaces:
    Operation
    Direct Known Subclasses:
    SizeLimitedBatchJsonOperation, SizeLimitedJsonOperation

    public abstract class SizeLimitedUpdateOperation
    extends BaseUpdateOperation
    BaseUpdateOperation extension that filters input data that is "too large". Implementations of this class are free to load SINGLE documents into memory. This provides no protection against loading ALL documents into memory. The filter limit is 1 MB by default and can be overwritten with MAX_SIZE_CONTAINER_PROP_KEY container property if set. Inputs that exceed the limit will be filtered out and marked as an application error. It's still best practice to use a proper in memory parser instead of converting every stream to a string or byte[]. Atom owners can set MAX_SIZE_CONTAINER_PROP_KEY to DEFAULT_IGNORE_MAX_SIZE_VALUE to ignore filtering based on input data size and let ALL documents thru.