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
-
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 String
fileName()
final QLockFile.LockInfo
final boolean
isLocked()
final boolean
lock()
final boolean
final void
setStaleLockTime
(int arg__1) final void
setStaleLockTime
(TemporalAmount value) final int
final Duration
final boolean
tryLock()
Overloaded function fortryLock(java.time.temporal.TemporalAmount)
withtimeout = java.time.Duration.ZERO
.final boolean
tryLock
(int timeout) final boolean
tryLock
(TemporalAmount timeout) final void
unlock()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QLockFile
- Parameters:
fileName
-
-
-
Method Details
-
error
- Returns:
-
fileName
- Returns:
-
getLockInfo
- Returns:
-
isLocked
- Returns:
-
lock
- Returns:
-
removeStaleLockFile
- Returns:
-
setStaleLockTime
- Parameters:
arg__1
-
-
setStaleLockTime
- Parameters:
value
-- Since:
- This function was introduced in Qt 6.2.
-
staleLockTime
- Returns:
-
staleLockTimeAsDuration
- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
tryLock
- Parameters:
timeout
-- Returns:
-
tryLock
- Parameters:
timeout
-- Returns:
- Since:
- This function was introduced in Qt 6.2.
-
unlock
-
tryLock
Overloaded function for
tryLock(java.time.temporal.TemporalAmount)
withtimeout = java.time.Duration.ZERO
.
-