public interface LockStrategy
LockStrategyDefault
.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.
|
void acquire(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock) throws LockStrategyException, InterruptedException
runtimeWideLock
- the runtime-wide event processing read-write lockLockStrategyException
- to indicate lock attempt failedInterruptedException
- when lock-taking is interruptedvoid release(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock)
runtimeWideLock
- the runtime-wide event processing read-write lockCopyright © 2005–2018. All rights reserved.