public void run() { idleResources(); } }, 0, 2, TimeUnit.SECONDS);
public IdleResourceInterceptor maxInactiveTime(long maxInactiveTime) { this.maxInactiveTime = maxInactiveTime; start(); return this; }
public void configure(AtmosphereConfig config) { this.config = config; String maxInactive = config.getInitParameter(MAX_INACTIVE); if (maxInactive != null) { maxInactiveTime = Long.parseLong(maxInactive); } start(); }