Package net.minecraft.server
Class SessionLockManager
- java.lang.Object
-
- net.minecraft.server.SessionLockManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SessionLockManager extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionLockManager.AlreadyLockedException
-
Constructor Summary
Constructors Modifier Constructor Description privateSessionLockManager(java.nio.channels.FileChannel p_i231437_1_, java.nio.channels.FileLock p_i231437_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static SessionLockManagercreate(java.nio.file.Path p_232998_0_)static booleanisLocked(java.nio.file.Path p_232999_0_)booleanisValid()
-
-
-
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:
closein interfacejava.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
-
-