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
-
-
Method Details
-
error
-
fileName
-
getLockInfo
-
isLocked
-
lock
-
removeStaleLockFile
-
setStaleLockTime
-
setStaleLockTime
See
QLockFile::
setStaleLockTime(std::chrono::milliseconds) This function was introduced in Qt 6.2.
-
staleLockTime
-
staleLockTimeAsDuration
See
QLockFile::
staleLockTimeAsDuration()const This function was introduced in Qt 6.2.
-
tryLock
-
tryLock
See
QLockFile::
tryLock(std::chrono::milliseconds) This function was introduced in Qt 6.2.
-
unlock
-
tryLock
Overloaded function for
tryLock(java.time.temporal.TemporalAmount)
withtimeout = java.time.Duration.ZERO
.
-