public class LockStrategyDefault extends Object implements LockStrategy
Modifier and Type | Field and Description |
---|---|
static LockStrategyDefault |
INSTANCE
The instance of the default lock strategy.
|
Modifier and Type | Method and Description |
---|---|
void |
acquire(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock)
Acquire should acquire the write lock of the provided read-write lock and may retry and backoff or fail.
|
void |
release(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock)
Release should release the write lock of the provided read-write lock and should never fail.
|
public static final LockStrategyDefault INSTANCE
public void acquire(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock) throws LockStrategyException
LockStrategy
acquire
in interface LockStrategy
runtimeWideLock
- the runtime-wide event processing read-write lockLockStrategyException
- to indicate lock attempt failedpublic void release(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock)
LockStrategy
release
in interface LockStrategy
runtimeWideLock
- the runtime-wide event processing read-write lockCopyright © 2005–2018. All rights reserved.