public interface MOLockStrategy
MOLockStrategy interface defines a strategy for locking ManagedObject
instances when they are accessed through a MOServer.| Modifier and Type | Method and Description |
|---|---|
boolean |
isLockNeeded(ManagedObject managedObjectLookedUp,
MOQuery query)
Check if the server access to the provided managed object needs a lock.
|
boolean isLockNeeded(ManagedObject managedObjectLookedUp, MOQuery query)
managedObjectLookedUp - the ManagedObject instance that is looked up and potentially accessed.query - the query on which behalf the lookup took place. It also signals with
MOQuery.isWriteAccessQuery() whether a write access is intended or not.true if a lock is required to access the provided managed object,
false otherwise.Copyright © 2019 SNMP4J.org. All rights reserved.