public class IlSynchronizeOnLockStrategy extends IlSynchronizationStrategy
IlSynchronizationStrategy abstract class.
It uses synchronization on an object. This class can be used
in a servlet environment.DEFAULT_PROPERTY| Constructor and Description |
|---|
IlSynchronizeOnLockStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
synchronizeRun(Runnable runnable,
Object lock)
The runnable parameter is run in a block synchronizing on the
lock parameter.
|
GetDefault, isInTargetThread, readLock, SetDefault, writeLockpublic boolean synchronizeRun(Runnable runnable, Object lock)
IlLockProxy.getLock() method
is used to synchronize.synchronizeRun in class IlSynchronizationStrategyrunnable - The Runnable object on which the run method will be calledlock - This object may be used as the object to synchronize onfalse if the operation fails for any reason.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.