站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 aspects API Documentation 英文版文档

StateManager (JBoss Aspects API) - JBoss 4.0.1 sp1 aspects API Documentation 英文版文档


org.jboss.aspects.versioned
Class StateManager

java.lang.Object
  extended byorg.jboss.aspects.versioned.StateManager
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
CollectionStateManager, DistributedPOJOState

public abstract class StateManager
extends Object
implements Externalizable

Version:
$Revision: 1.1 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
protected  org.jboss.util.id.GUID guid
           
protected  EDU.oswego.cs.dl.util.concurrent.ReadWriteLock lock
           
protected static org.jboss.logging.Logger log
           
static String STATE_MANAGER
           
protected  long timeout
           
 
Constructor Summary
StateManager()
           
StateManager(org.jboss.util.id.GUID guid, long timeout)
           
 
Method Summary
 void acquireReadLock()
           
 void acquireWriteLock()
           
 org.jboss.util.id.GUID getGUID()
           
 EDU.oswego.cs.dl.util.concurrent.ReadWriteLock getLock()
           
static StateManager getStateManager(org.jboss.aop.InstanceAdvised obj)
           
 void readExternal(ObjectInput in)
           
 void releaseReadLock()
           
 void releaseWriteLock()
           
static void setStateManager(org.jboss.aop.InstanceAdvised obj, StateManager manager)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_MANAGER

public static final String STATE_MANAGER
See Also:
Constant Field Values

log

protected static org.jboss.logging.Logger log

guid

protected org.jboss.util.id.GUID guid

timeout

protected long timeout

lock

protected transient EDU.oswego.cs.dl.util.concurrent.ReadWriteLock lock
Constructor Detail

StateManager

public StateManager()

StateManager

public StateManager(org.jboss.util.id.GUID guid,
                    long timeout)
Method Detail

getStateManager

public static StateManager getStateManager(org.jboss.aop.InstanceAdvised obj)

setStateManager

public static void setStateManager(org.jboss.aop.InstanceAdvised obj,
                                   StateManager manager)

getLock

public EDU.oswego.cs.dl.util.concurrent.ReadWriteLock getLock()

getGUID

public org.jboss.util.id.GUID getGUID()

acquireWriteLock

public void acquireWriteLock()

acquireReadLock

public void acquireReadLock()

releaseReadLock

public void releaseReadLock()

releaseWriteLock

public void releaseWriteLock()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


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