Class LockRequest

java.lang.Object
org.snmp4j.agent.mo.lock.LockRequest

public class LockRequest extends Object
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
  • Constructor Details

    • LockRequest

      public LockRequest(Object lockOwner, long timeoutMillis)
      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), see MOServer.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