Class LockStrategyNone

java.lang.Object
com.espertech.esper.runtime.client.util.LockStrategyNone
All Implemented Interfaces:
LockStrategy

public class LockStrategyNone extends Object implements LockStrategy
Obtains the write lock of the runtime-wide event processing read-write lock by simply blocking until the lock was obtained.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LockStrategyNone
    Instance of a lock strategy that does not obtain a lock.
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final LockStrategyNone 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 interface LockStrategy
      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 interface LockStrategy
      Parameters:
      runtimeWideLock - the runtime-wide event processing read-write lock