Class DocumentUtil


  • public class DocumentUtil
    extends java.lang.Object
    Class containing static utility function related to documents.
    Since:
    5.1.9
    Author:
    einarmr
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int calculateMaxPendingSize​(double maxConcurrentFactor, double documentExpansionFactor, int containerCoreMemoryMb)
      A convenience method that can be used to calculate a max pending queue size given the number of threads processing the documents, their size, and the memory available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentUtil

        public DocumentUtil()
    • Method Detail

      • calculateMaxPendingSize

        public static int calculateMaxPendingSize​(double maxConcurrentFactor,
                                                  double documentExpansionFactor,
                                                  int containerCoreMemoryMb)
        A convenience method that can be used to calculate a max pending queue size given the number of threads processing the documents, their size, and the memory available.
        Returns:
        the max pending size (in bytes) that should be used.