ilog.mt
Class IlSynchronizeOnLockStrategy
java.lang.Object
|
+--ilog.mt.IlSynchronizationStrategy
|
+--ilog.mt.IlSynchronizeOnLockStrategy
- public class IlSynchronizeOnLockStrategy
- extends IlSynchronizationStrategy
This class provides an implementation of the
IlSynchronizationStrategy
abstract class.
It uses synchronization on an object. This class can be used in a servlet
environment.
Method Summary |
boolean |
synchronizeRun(Runnable runnable,
Object lock)
The runnable parameter is run in a block
synchronizing on the lock parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlSynchronizeOnLockStrategy
public IlSynchronizeOnLockStrategy()
synchronizeRun
public boolean synchronizeRun(Runnable runnable,
Object lock)
- The runnable parameter is run in a block
synchronizing on the lock parameter. If the lock
parameter implements the IlLockProxy interface, the object
returned by the
IlLockProxy.getLock()
method is used to
synchronize.
- Overrides:
synchronizeRun
in class IlSynchronizationStrategy
- Following copied from class:
ilog.mt.IlSynchronizationStrategy
- Parameters:
runnable
- The Runnable
object on which the run
method will be calledlock
- This object may be used as the object to synchronize on- Returns:
- false if the operation fails for any reason.