Flow refactor of session classnames into module and etc files
This commit is contained in:
parent
a28a59be89
commit
e1489340fe
|
@ -10,8 +10,8 @@
|
|||
<Call name="addBean">
|
||||
<Arg>
|
||||
<New class="org.eclipse.jetty.server.session.DefaultSessionCacheFactory">
|
||||
<Set name="idlePassivationTimeoutSec"><Property name="jetty.session.idlePassivationTimeout.seconds" default="0" /></Set>
|
||||
<Set name="passivateOnComplete"><Property name="jetty.session.passivateOnComplete" default="false" /></Set>
|
||||
<Set name="evictionPolicy"><Property name="jetty.session.evictionPolicy" default="-1" /></Set>
|
||||
<Set name="saveOnInactiveEvict"><Property name="jetty.session.saveOnInactiveEvict" default="false" /></Set>
|
||||
</New>
|
||||
</Arg>
|
||||
</Call>
|
||||
|
|
|
@ -14,5 +14,5 @@ sessions
|
|||
etc/sessions/hash-session-cache.xml
|
||||
|
||||
[ini-template]
|
||||
#jetty.session.idlePassivationTimeout.seconds=0
|
||||
#jetty.session.passivateOnComplete=false
|
||||
#jetty.session.evictionPolicy=-1
|
||||
#jetty.session.saveOnInactiveEvict=false
|
||||
|
|
|
@ -26,23 +26,23 @@ package org.eclipse.jetty.server.session;
|
|||
*/
|
||||
public class DefaultSessionCacheFactory implements SessionCacheFactory
|
||||
{
|
||||
int _evictionTimeout;
|
||||
int _evictionPolicy;
|
||||
boolean _saveOnInactiveEvict;
|
||||
|
||||
|
||||
|
||||
|
||||
public int getEvictionTimeout()
|
||||
public int getEvictionPolicy()
|
||||
{
|
||||
return _evictionTimeout;
|
||||
return _evictionPolicy;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setEvictionTimeout(int evictionTimeout)
|
||||
public void setEvictionPolicy(int evictionPolicy)
|
||||
{
|
||||
_evictionTimeout = evictionTimeout;
|
||||
_evictionPolicy = evictionPolicy;
|
||||
}
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class DefaultSessionCacheFactory implements SessionCacheFactory
|
|||
public SessionCache getSessionCache (SessionHandler handler)
|
||||
{
|
||||
DefaultSessionCache cache = new DefaultSessionCache(handler);
|
||||
cache.setEvictionPolicy(_evictionTimeout);
|
||||
cache.setEvictionPolicy(_evictionPolicy);
|
||||
cache.setSaveOnInactiveEviction(_saveOnInactiveEvict);
|
||||
return cache;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue