Methods Summary |
---|
public void | acquireReadLock()
try
{
if (!lock.readLock().attempt(timeout))
{
throw new LockAttemptFailure("failed to acquire read lock: " + guid);
}
log.trace("readlock acquired for: " + guid);
}
catch (InterruptedException ignored)
{
throw new LockAttemptFailure("failed to acquire read lock: " + guid);
}
|
public void | acquireWriteLock()
try
{
if (!lock.writeLock().attempt(timeout))
{
throw new LockAttemptFailure("failed to acquire write lock: " + guid);
}
log.trace("writelock acquired for: " + guid);
}
catch (InterruptedException ignored)
{
throw new LockAttemptFailure("failed to acquire write lock: " + guid);
}
|
public org.jboss.util.id.GUID | getGUID() return guid;
|
public EDU.oswego.cs.dl.util.concurrent.ReadWriteLock | getLock() return lock;
|
public static org.jboss.aspects.versioned.StateManager | getStateManager(org.jboss.aop.InstanceAdvised obj)
return (StateManager)obj._getInstanceAdvisor().getMetaData().getMetaData(STATE_MANAGER, STATE_MANAGER);
|
public void | readExternal(java.io.ObjectInput in)
this.guid = (GUID)in.readObject();
this.timeout = in.readLong();
this.lock = new WriterPreferenceReadWriteLock();
|
public void | releaseReadLock()
lock.readLock().release();
log.trace("readlock released for: " + guid);
|
public void | releaseWriteLock()
lock.writeLock().release();
log.trace("writelock released for: " + guid);
|
public static void | setStateManager(org.jboss.aop.InstanceAdvised obj, org.jboss.aspects.versioned.StateManager manager)
obj._getInstanceAdvisor().getMetaData().addMetaData(STATE_MANAGER, STATE_MANAGER, manager, PayloadKey.TRANSIENT);
|
public void | writeExternal(java.io.ObjectOutput out)
out.writeObject(guid);
out.writeLong(timeout);
|