public boolean isConnectionStale() {
        if (lastUsedTime == 0)
            return false;

        long currentTime = System.currentTimeMillis();
        long timeSinceLastUse = currentTime - lastUsedTime;
        return (timeSinceLastUse > MAX_KEEPALIVE);
    }
public boolean isConnectionStale ( ) { if ( lastUsedTime == 0 ) return false ; long currentTime = System . currentTimeMillis ( ) ; long timeSinceLastUse = currentTime - lastUsedTime ; return ( timeSinceLastUse > MAX_KEEPALIVE ) ; }
Checks whether or not this connection has been used recently enough
to still be considered usable