Class InterprocessLock

  • All Implemented Interfaces:
    deltix.util.lang.Disposable, java.io.Closeable, java.lang.AutoCloseable

    public class InterprocessLock
    extends java.lang.Object
    implements deltix.util.lang.Disposable
    • Constructor Summary

      Constructors 
      Constructor Description
      InterprocessLock​(java.lang.String name)
      Named system event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void signal()  
      void waitFor()
      Wait for 'set' state.
      • Methods inherited from class java.lang.Object

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

      • InterprocessLock

        public InterprocessLock​(java.lang.String name)
        Named system event. Create or open system event.
        Parameters:
        name - - name of event.
    • Method Detail

      • waitFor

        public void waitFor()
        Wait for 'set' state. Than event auto-resets.
      • signal

        public void signal()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface deltix.util.lang.Disposable