Class SessionLockManager

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class SessionLockManager
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.nio.ByteBuffer DUMMY  
      private java.nio.channels.FileLock lock  
      private java.nio.channels.FileChannel lockFile  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SessionLockManager​(java.nio.channels.FileChannel p_i231437_1_, java.nio.channels.FileLock p_i231437_2_)  
    • Field Detail

      • lockFile

        private final java.nio.channels.FileChannel lockFile
      • lock

        private final java.nio.channels.FileLock lock
      • DUMMY

        private static final java.nio.ByteBuffer DUMMY
    • Constructor Detail

      • SessionLockManager

        private SessionLockManager​(java.nio.channels.FileChannel p_i231437_1_,
                                   java.nio.channels.FileLock p_i231437_2_)
    • Method Detail

      • create

        public static SessionLockManager create​(java.nio.file.Path p_232998_0_)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • isValid

        public boolean isValid()
      • isLocked

        public static boolean isLocked​(java.nio.file.Path p_232999_0_)
                                throws java.io.IOException
        Throws:
        java.io.IOException