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, writeLock
public boolean synchronizeRun(Runnable runnable, Object lock)
IlLockProxy.getLock()
method
is used to synchronize.synchronizeRun
in class IlSynchronizationStrategy
runnable
- 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 Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.