/** * This method should be called when non-idle activity has taken place. */ public void notIdle() { idleTimestamp = Millisecond100Clock.currentTimeMillis(); }
public static long currentTimeMillis() { return TIME_PROVIDER.currentTimeMillis(); }
public DateSerializer(String datePattern) { this.safeSimpleDateFormat = new SafeSimpleDateFormat(datePattern); }
public static void stop() { TIME_PROVIDER.stop(); } }
@Override public long getDuration() { if (closeTime > 0) { return closeTime - openTime; } else { return Millisecond100Clock.currentTimeMillis() - openTime; } }
public DateParser(String datePattern) { this.safeSimpleDateFormat = new SafeSimpleDateFormat(datePattern); }
public static void stop() { TIME_PROVIDER.stop(); } }
/** * Get the cached object. * * @return T the cached object. */ public T getObject() { activeTime = Millisecond100Clock.currentTimeMillis(); return object; }
public DateSerializer(String datePattern) { this.safeSimpleDateFormat = new SafeSimpleDateFormat(datePattern); }
public static void stop() { TIME_PROVIDER.stop(); } }
/** * This method should be called when non-idle activity has taken place. */ public void notIdle() { idleTimestamp = Millisecond100Clock.currentTimeMillis(); }
public DateParser(String datePattern) { this.safeSimpleDateFormat = new SafeSimpleDateFormat(datePattern); }
@Override public long getDuration() { if (closeTime > 0) { return closeTime - openTime; } else { return Millisecond100Clock.currentTimeMillis() - openTime; } }
/** * Get the cached object. * * @return T the cached object. */ public T getObject() { activeTime = Millisecond100Clock.currentTimeMillis(); return object; }
public AsynchronousTcpSession(int sessionId, Config config, EventManager eventManager, AsynchronousSocketChannel socketChannel) { this.sessionId = sessionId; this.openTime = Millisecond100Clock.currentTimeMillis(); this.config = config; this.eventManager = eventManager; this.socketChannel = socketChannel; state = OPEN; }
/** * This method should be called when non-idle activity has taken place. */ public void notIdle() { idleTimestamp = Millisecond100Clock.currentTimeMillis(); }
@Override public long getDuration() { if (closeTime > 0) { return closeTime - openTime; } else { return Millisecond100Clock.currentTimeMillis() - openTime; } }
public boolean isInvalid() { long currentTime = Millisecond100Clock.currentTimeMillis(); return (currentTime - lastAccessedTime) > (maxInactiveInterval * 1000); }
public boolean isInvalid() { long currentTime = Millisecond100Clock.currentTimeMillis(); return (currentTime - lastAccessedTime) > (maxInactiveInterval * 1000); }
private void notIdle() { idleTime = Millisecond100Clock.currentTimeMillis(); }