}
@Override
public void destroyInactiveSessions() {
for (Map.Entry<String, NettyHttpSession> entry : SESSIONS.entrySet()) {
NettyHttpSession session = entry.getValue();
if (session.getMaxInactiveInterval() < 0) {
continue;
}
long currentMillis = System.currentTimeMillis();
if (currentMillis - session.getLastAccessedTime() > session
.getMaxInactiveInterval() * 1000) {
destroySession(entry.getKey());
}
}