java.lang.Object
io.qt.QtObject
io.qt.core.QLockFile
- All Implemented Interfaces:
QtObjectInterface
Locking between processes using a file
Java wrapper for Qt class QLockFile
- Since:
- This class was introduced in Qt 5.1.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQLockFile::LockError
static class
Result class forgetLockInfo()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal QLockFile.LockError
error()
final QLockFile.LockInfo
final boolean
isLocked()
final boolean
lock()
final boolean
final void
setStaleLockTime
(int arg__1) final int
final boolean
tryLock()
Overloaded function fortryLock(int)
withtimeout = 0
.final boolean
tryLock
(int timeout) final void
unlock()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QLockFile
- Parameters:
fileName
-
-
-
Method Details
-
error
- Returns:
-
getLockInfo
- Returns:
-
isLocked
- Returns:
-
lock
- Returns:
-
removeStaleLockFile
- Returns:
-
setStaleLockTime
- Parameters:
arg__1
-
-
staleLockTime
- Returns:
-
tryLock
- Parameters:
timeout
-- Returns:
-
unlock
-
tryLock
Overloaded function for
tryLock(int)
withtimeout = 0
.
-