Class ClientWarn

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ClientWarn.State  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void captureWarnings()  
      ClientWarn.State get()
      This is called when scheduling the task, and also before calling ExecutorLocal.set(Object) when running on a executor thread.
      java.util.List<java.lang.String> getWarnings()  
      void resetWarnings()  
      void set​(ClientWarn.State value)
      Before a task has been run, this will be called with the value from the thread that scheduled the task, and after the task is finished, the value that was previously retrieved from this thread is restored.
      void warn​(java.lang.String text)  
      • Methods inherited from class java.lang.Object

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

      • set

        public void set​(ClientWarn.State value)
        Description copied from interface: ExecutorLocal
        Before a task has been run, this will be called with the value from the thread that scheduled the task, and after the task is finished, the value that was previously retrieved from this thread is restored.
        Specified by:
        set in interface ExecutorLocal<ClientWarn.State>
        Parameters:
        value - Value to use for the executor local state; may be null.
      • warn

        public void warn​(java.lang.String text)
      • captureWarnings

        public void captureWarnings()
      • getWarnings

        public java.util.List<java.lang.String> getWarnings()
      • resetWarnings

        public void resetWarnings()