org.jboss.metadata.web.jboss
Class PassivationConfig

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.web.jboss.PassivationConfig
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData

public class PassivationConfig
extends IdMetaDataImpl

Represents a element of the jboss-web.xml deployment descriptor

Version:
$Revision: 83549 $
Author:
Brian Stansberry
See Also:
Serialized Form

Constructor Summary
PassivationConfig()
           
 
Method Summary
 Integer getPassivationMaxIdleTime()
          Gets the max time (seconds) the session must be idle after which it's eligible for passivation whether or not maxActiveSessions has been reached.
 Integer getPassivationMinIdleTime()
          Gets the min time (seconds) a session must be idle before it's eligible for passivation.
 Boolean getUseSessionPassivation()
          Gets whether passivation is enabled for this webapp.
 void setPassivationMaxIdleTime(Integer passivationMaxIdleTime)
          Sets the max time (seconds) the session must be idle after which it's eligible for passivation whether or not maxActiveSessions has been reached.
 void setPassivationMinIdleTime(Integer passivationMinIdleTime)
          Sets the min time (seconds) a session must be idle before it's eligible for passivation.
 void setUseSessionPassivation(Boolean useSessionPassivation)
          Sets whether passivation is enabled for this webapp.
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, equals, getId, hashCode, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassivationConfig

public PassivationConfig()
Method Detail

getPassivationMaxIdleTime

public Integer getPassivationMaxIdleTime()
Gets the max time (seconds) the session must be idle after which it's eligible for passivation whether or not maxActiveSessions has been reached.


setPassivationMaxIdleTime

public void setPassivationMaxIdleTime(Integer passivationMaxIdleTime)
Sets the max time (seconds) the session must be idle after which it's eligible for passivation whether or not maxActiveSessions has been reached.


getPassivationMinIdleTime

public Integer getPassivationMinIdleTime()
Gets the min time (seconds) a session must be idle before it's eligible for passivation. This overrides the maxActiveSessions config, to prevent thrashing if the there are lots of active sessions. Setting to -1 means it's ignored


setPassivationMinIdleTime

public void setPassivationMinIdleTime(Integer passivationMinIdleTime)
Sets the min time (seconds) a session must be idle before it's eligible for passivation. This overrides the maxActiveSessions config, to prevent thrashing if the there are lots of active sessions. Setting to -1 means it's ignored


getUseSessionPassivation

public Boolean getUseSessionPassivation()
Gets whether passivation is enabled for this webapp.


setUseSessionPassivation

public void setUseSessionPassivation(Boolean useSessionPassivation)
Sets whether passivation is enabled for this webapp.



Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.