Class SessionLock
java.lang.Object
net.minecraft.world.level.storage.SessionLock
- All Implemented Interfaces:
AutoCloseable
public class SessionLock extends Object implements AutoCloseable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionLock.AlreadyLockedException -
Field Summary
Fields Modifier and Type Field Description private FileChannelchannelprivate static ByteBufferfield_25353private FileLocklock -
Constructor Summary
Constructors Modifier Constructor Description privateSessionLock(FileChannel channel, FileLock lock) -
Method Summary
-
Field Details
-
field_25353
-
channel
-
lock
-
-
Constructor Details
-
SessionLock
-
-
Method Details
-
create
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
isValid
public boolean isValid() -
isLocked
- Throws:
IOException
-