org.jboss.ejb
Interface BeanLockExt

All Superinterfaces:
BeanLock (src)
All Known Implementing Classes:
BeanLockSupport (src)

public interface BeanLockExt
extends BeanLock (src)

An extension of the BeanLock interface that adds support for non-blocking acquisition of a lock.


Method Summary
 boolean attemptSync()
          A non-blocking method that checks if the calling thread will be able to acquire the sync lock based on the calling thread.
 
Methods inherited from interface org.jboss.ejb.BeanLock (src)
addRef, endInvocation, endTransaction, getId, getRefs, getTransaction, releaseSync, removeRef, schedule, setContainer, setId, setTimeout, setTransaction, sync, wontSynchronize
 

Method Detail

attemptSync

public boolean attemptSync()
A non-blocking method that checks if the calling thread will be able to acquire the sync lock based on the calling thread.

Returns:
true if the calling thread can obtain the sync lock in which case it will, false if another thread already has the lock.