public void checkToken(String token){
  if (token != null && !token.isEmpty() && (System.currentTimeMillis() - tokenLastChecked) / 1000 > TOKEN_CHECK_DELAY) {
    LOGGER.info("Checking token..");
    tokenLastChecked=Long.valueOf(System.currentTimeMillis());
    verifyToken(token);
  }
}

public void checkToken ( String token ) { if ( token != null && ! token . isEmpty ( ) && ( System . currentTimeMillis ( ) - tokenLastChecked ) / 1000 > TOKEN_CHECK_DELAY ) { LOGGER . info ( "Checking token.." ) ; tokenLastChecked = Long . valueOf ( System . currentTimeMillis ( ) ) ; verifyToken ( token ) ; } }
verifies token , but only once the delay has passed . for automatic checks instead of manual ones .
