List of usage examples for org.apache.wicket.util.time Duration MAXIMUM
Duration MAXIMUM
To view the source code for org.apache.wicket.util.time Duration MAXIMUM.
Click Source Link
From source file:fiftyfive.wicket.js.JavaScriptDependencySettings.java
License:Apache License
/** * Returns the duration that JavaScript dependency traversal results * (i.e. the tree of dependencies as determined by parsing sprockets * directives) are allowed to be stored in cache. */// w w w.j a v a 2 s . c o m public Duration getTraversalCacheDuration() { // Interpret null based on application mode if (null == this.traversalCacheDuration) { if (this.app.usesDeploymentConfig()) { // Cache indefinitely return Duration.MAXIMUM; } // Disable cache return Duration.NONE; } return this.traversalCacheDuration; }
From source file:org.wicketstuff.push.timer.TimerPushBehavior.java
License:Apache License
/** * @return the number of handlers after the removal *///w w w . j a v a2s . c o m int removeNode(final IPushNode<?> node) { handlers.remove(node); // adjust the polling interval based on the fastest remaining node Duration newPollingInterval = Duration.MAXIMUM; for (final TimerPushNode n : handlers.keySet()) if (n.getPollingInterval().lessThan(newPollingInterval)) newPollingInterval = n.getPollingInterval(); setUpdateInterval(newPollingInterval); return handlers.size(); }