public class LockStrategyNone extends Object implements LockStrategy
Modifier and Type | Field and Description |
---|---|
static LockStrategyNone |
INSTANCE
Instance of a lock strategy that does not obtain a lock.
|
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 LockStrategyNone 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.