Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mortbay.j2ee.session
Class SynchronizingInterceptor  view SynchronizingInterceptor download SynchronizingInterceptor.java

java.lang.Object
  extended byorg.mortbay.j2ee.session.StateInterceptor
      extended byorg.mortbay.j2ee.session.SynchronizingInterceptor
All Implemented Interfaces:
java.lang.Cloneable, State

public class SynchronizingInterceptor
extends StateInterceptor


Field Summary
protected  java.lang.Object _attributesLock
           
protected  java.lang.Object _lastAccessedTimeLock
           
protected static org.jboss.logging.Logger _log
           
protected  java.lang.Object _maxInactiveIntervalLock
           
 
Fields inherited from class org.mortbay.j2ee.session.StateInterceptor
 
Constructor Summary
SynchronizingInterceptor()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNameEnumeration()
           
 java.lang.String[] getAttributeNameStringArray()
           
 java.util.Map getAttributes()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 java.lang.Object removeAttribute(java.lang.String name, boolean returnValue)
           
 java.lang.Object setAttribute(java.lang.String name, java.lang.Object value, boolean returnValue)
           
 void setAttributes(java.util.Map attributes)
           
 void setLastAccessedTime(long time)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class org.mortbay.j2ee.session.StateInterceptor
clone, getActualMaxInactiveInterval, getCreationTime, getId, getManager, getSession, getState, isValid, setManager, setSession, setState, start, stop, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_log

protected static final org.jboss.logging.Logger _log

_lastAccessedTimeLock

protected final java.lang.Object _lastAccessedTimeLock

_maxInactiveIntervalLock

protected final java.lang.Object _maxInactiveIntervalLock

_attributesLock

protected final java.lang.Object _attributesLock
Constructor Detail

SynchronizingInterceptor

public SynchronizingInterceptor()
Method Detail

setLastAccessedTime

public void setLastAccessedTime(long time)
                         throws java.rmi.RemoteException
Specified by:
setLastAccessedTime in interface State
Overrides:
setLastAccessedTime in class StateInterceptor

getLastAccessedTime

public long getLastAccessedTime()
                         throws java.rmi.RemoteException
Specified by:
getLastAccessedTime in interface State
Overrides:
getLastAccessedTime in class StateInterceptor

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
                            throws java.rmi.RemoteException
Specified by:
setMaxInactiveInterval in interface State
Overrides:
setMaxInactiveInterval in class StateInterceptor

getMaxInactiveInterval

public int getMaxInactiveInterval()
                           throws java.rmi.RemoteException
Specified by:
getMaxInactiveInterval in interface State
Overrides:
getMaxInactiveInterval in class StateInterceptor

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
                              throws java.rmi.RemoteException
Specified by:
getAttribute in interface State
Overrides:
getAttribute in class StateInterceptor

getAttributeNameEnumeration

public java.util.Enumeration getAttributeNameEnumeration()
                                                  throws java.rmi.RemoteException
Specified by:
getAttributeNameEnumeration in interface State
Overrides:
getAttributeNameEnumeration in class StateInterceptor

getAttributeNameStringArray

public java.lang.String[] getAttributeNameStringArray()
                                               throws java.rmi.RemoteException
Specified by:
getAttributeNameStringArray in interface State
Overrides:
getAttributeNameStringArray in class StateInterceptor

setAttribute

public java.lang.Object setAttribute(java.lang.String name,
                                     java.lang.Object value,
                                     boolean returnValue)
                              throws java.rmi.RemoteException
Specified by:
setAttribute in interface State
Overrides:
setAttribute in class StateInterceptor

removeAttribute

public java.lang.Object removeAttribute(java.lang.String name,
                                        boolean returnValue)
                                 throws java.rmi.RemoteException
Specified by:
removeAttribute in interface State
Overrides:
removeAttribute in class StateInterceptor

getAttributes

public java.util.Map getAttributes()
                            throws java.rmi.RemoteException
Specified by:
getAttributes in interface State
Overrides:
getAttributes in class StateInterceptor

setAttributes

public void setAttributes(java.util.Map attributes)
                   throws java.rmi.RemoteException
Specified by:
setAttributes in interface State
Overrides:
setAttributes in class StateInterceptor