Class RecursionGuard


  • public class RecursionGuard
    extends java.lang.Object
    Entry handled by flag value. entry will be allowed if the passed flag is > than the flag of one already inside flag 0 will enter only if no one is inside

    Not intended for thread safety but for UI recursion when processing events that modify components

    • Constructor Summary

      Constructors 
      Constructor Description
      RecursionGuard()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean enter​(int rank, java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

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

      • RecursionGuard

        public RecursionGuard()
    • Method Detail

      • enter

        public boolean enter​(int rank,
                             java.lang.Runnable runnable)