org.apache.jackrabbit.oak.jcr.session
Class RefreshStrategy.LogOnce
java.lang.Object
org.apache.jackrabbit.oak.jcr.session.RefreshStrategy.Timed
org.apache.jackrabbit.oak.jcr.session.RefreshStrategy.LogOnce
- All Implemented Interfaces:
- RefreshStrategy
- Enclosing interface:
- RefreshStrategy
public static class RefreshStrategy.LogOnce
- extends RefreshStrategy.Timed
This refresh strategy never refreshed the session but logs
a warning if a session has been idle for more than a given time.
TODO replace logging with JMX monitoring. See OAK-941
Method Summary |
boolean |
needsRefresh(long secondsSinceLastAccess)
Log once |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefreshStrategy.LogOnce
public RefreshStrategy.LogOnce(long interval)
- Parameters:
interval
- Interval in seconds after which a warning is logged if there was no
activity.
needsRefresh
public boolean needsRefresh(long secondsSinceLastAccess)
- Log once
- Specified by:
needsRefresh
in interface RefreshStrategy
- Overrides:
needsRefresh
in class RefreshStrategy.Timed
- Parameters:
secondsSinceLastAccess
- seconds since last access
- Returns:
false
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.