public void setInactivityTimeout(Duration inactivityTimeout) {
        this.inactivityTimeout = inactivityTimeout;
    }
Sets the time, in seconds, after which this session will be considered inactive and be terminated.

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