org.apache.jackrabbit.oak.jcr.session
Class RefreshStrategy.LogOnce

java.lang.Object
  extended by org.apache.jackrabbit.oak.jcr.session.RefreshStrategy.Timed
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.jcr.session.RefreshStrategy
RefreshStrategy.Composite, RefreshStrategy.LogOnce, RefreshStrategy.Timed
 
Constructor Summary
RefreshStrategy.LogOnce(long interval)
           
 
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
 

Constructor Detail

RefreshStrategy.LogOnce

public RefreshStrategy.LogOnce(long interval)
Parameters:
interval - Interval in seconds after which a warning is logged if there was no activity.
Method Detail

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.