Class Mutex


  • public class Mutex
    extends Object
    Provides mutual exclusive execution of a Runnable.
    • Constructor Detail

      • Mutex

        public Mutex()
    • Method Detail

      • execute

        public final void execute​(Runnable runnable)
        The runnable is executed under synchronization of this Mutex instance.
        Parameters:
        runnable -