private int maxLoadedJsps = -1;
/**
- * The idle time after which a JSP is unloaded.
+ * The idle time in seconds after which a JSP is unloaded.
* If unset or less or equal than 0, no jsps are unloaded.
*/
private int jspIdleTimeout = -1;
}
/**
- * Should any jsps be unloaded when being idle for to long?
+ * Should any jsps be unloaded when being idle for this time in seconds?
* If set to a value greater than 0 eviction of jsps is started. Default: -1
*/
public int getJspIdleTimeout() {
public int getMaxLoadedJsps();
/**
- * The idle time after which a JSP is unloaded.
+ * The idle time in seconds after which a JSP is unloaded.
* If unset or less or equal than 0, no jsps are unloaded.
*/
public int getJspIdleTimeout();
jspQueue = new FastRemovalDequeue<JspServletWrapper>(options.getMaxLoadedJsps());
}
+ /* Init parameter is in seconds, locally we use milliseconds */
jspIdleTimeout = options.getJspIdleTimeout() * 1000;
}
private final String classpath;
private volatile long lastCompileCheck = -1L;
private volatile long lastJspQueueUpdate = System.currentTimeMillis();
+ /* JSP idle timeout in milliseconds */
private long jspIdleTimeout;
/**