Class DiagnosticSupport


  • public class DiagnosticSupport
    extends Object
    Encapsulated a diagnostic to hide multi-threaded details.
    • Constructor Detail

      • DiagnosticSupport

        public DiagnosticSupport​(BasicDiagnostic diagnostic)
        Constructor.
        Parameters:
        diagnostic - The diagnostic to wrap, must not be null.
      • DiagnosticSupport

        public DiagnosticSupport()
        Constructor, will instantiate a default diagnostic.
    • Method Detail

      • createDiagnostic

        protected BasicDiagnostic createDiagnostic()
        Creates the BasicDiagnostic that will be used by this computation. Can be overridden if necessary.
        Returns:
        A new empty BasicDiagnostic.
      • merge

        public void merge​(Diagnostic resourceDiagnostic)
        Thread safely merge the given diagnostic to the diagnostic field.
        Parameters:
        resourceDiagnostic - the diagnostic to be added to the global diagnostic.