Class LockStrategyNone
java.lang.Object
com.espertech.esper.runtime.client.util.LockStrategyNone
- All Implemented Interfaces:
LockStrategy
Obtains the write lock of the runtime-wide event processing read-write lock by simply blocking until the lock was obtained.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LockStrategyNone
Instance of a lock strategy that does not obtain a lock. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Field Details
-
INSTANCE
Instance of a lock strategy that does not obtain a lock.
-
-
Method Details
-
acquire
public void acquire(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock) throws LockStrategyException Description copied from interface:LockStrategy
Acquire should acquire the write lock of the provided read-write lock and may retry and backoff or fail.- Specified by:
acquire
in interfaceLockStrategy
- Parameters:
runtimeWideLock
- the runtime-wide event processing read-write lock- Throws:
LockStrategyException
- to indicate lock attempt failed
-
release
public void release(com.espertech.esper.common.internal.util.ManagedReadWriteLock runtimeWideLock) Description copied from interface:LockStrategy
Release should release the write lock of the provided read-write lock and should never fail.- Specified by:
release
in interfaceLockStrategy
- Parameters:
runtimeWideLock
- the runtime-wide event processing read-write lock
-