org.jboss.ejb
Interface BeanLockExt

All Superinterfaces:
BeanLock
All Known Implementing Classes:
BeanLockSupport

public interface BeanLockExt
extends BeanLock

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

Version:
$Revision: 1.1 $
Author:
Scott.Stark@jboss.org

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
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.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.