public void pause(Duration duration) {
        // Respond immediately to all pending requests
        synchronized (connectionQueue) {
            final Iterator<HttpConnection> iter = connectionQueue.iterator();
            while (iter.hasNext()) {
                final HttpConnection toClose = iter.next();
                toClose.close();
                iter.remove();
            }
        }
        setInactivityTimeout(duration);
    }
Pauses the session for the given amount of time. If a client encounters an exceptional
temporary situation during which it will be unable to send requests to the connection
manager for a period of time greater than the maximum inactivity period, then the client MAY
request a temporary increase to the maximum inactivity period by including a 'pause'
attribute in a request.

@param duration the time, in seconds, after which this session will be considered inactive
       and terminated.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java