当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
BeanLockExt (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
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 |
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.