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 class
SessionLockManager.AlreadyLockedException
-
Constructor Summary
Constructors Modifier Constructor Description private
SessionLockManager(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 void
close()
static SessionLockManager
create(java.nio.file.Path p_232998_0_)
static boolean
isLocked(java.nio.file.Path p_232999_0_)
boolean
isValid()
-
-
-
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 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
-
-