public boolean isExpired(){
  return System.currentTimeMillis() - this.lastAccessTime >= 1800000L;
}

public boolean isExpired ( ) { return System . currentTimeMillis ( ) - this . lastAccessTime >= 1800000L ; }
if connection last used time is 30 minutes away , treat it as expired
