java.lang.Object
org.snmp4j.agent.mo.lock.LockRequest
The
LockRequest
class bundles information necessary to request a lock on a
ManagedObject
for update or value access.- Since:
- 2.4.0
- Author:
- Frank Fock
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLockRequest
(Object lockOwner, long timeoutMillis) Creates a new lock request with owner and timeout. -
Method Summary
Modifier and TypeMethodDescriptionlong
void
setLockRequestStatus
(LockRequest.LockStatus lockRequestStatus) toString()
-
Constructor Details
-
LockRequest
Creates a new lock request with owner and timeout.- Parameters:
lockOwner
- the owner of the lock. The same owner may lock a managed object again (recursively), seeMOServer.lock(Object, ManagedObject)
for details.timeoutMillis
- the number of 1/1000 seconds to wait for the lock. 0 or less disables the timeout and waits forever until the lock is released by the current owner.
-
-
Method Details