com.espertech.esper.util
Interface ManagedLock

All Known Implementing Classes:
ManagedLockImpl

public interface ManagedLock

Interface for a lock for use to perform statement-level locking.


Method Summary
 void acquireLock(StatementLockFactory statementLockFactory)
          Acquire a lock.
 boolean isHeldByCurrentThread()
          Returns true if the current thread holds the lock, or false if not.
 void releaseLock(StatementLockFactory statementLockFactory)
          Release a lock.
 

Method Detail

acquireLock

void acquireLock(StatementLockFactory statementLockFactory)
Acquire a lock.

Parameters:
statementLockFactory - is the engine lock factory service that the lock can use for engine lock services

releaseLock

void releaseLock(StatementLockFactory statementLockFactory)
Release a lock.

Parameters:
statementLockFactory - is the engine lock factory service that the lock can use for engine lock services

isHeldByCurrentThread

boolean isHeldByCurrentThread()
Returns true if the current thread holds the lock, or false if not.

Returns:
thread owner indication

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com