public HashTokenSessionMap(Environment environment){
  int sessionTimeoutValue;
  try {
    sessionTimeoutValue=environment.getProperty(API_SESSION_TIMEOUT,60);
  }
 catch (  GuacamoleException e) {
    logger.error("Unable to read guacamole.properties: {}",e.getMessage());
    logger.debug("Error while reading session timeout value.",e);
    sessionTimeoutValue=60;
  }
  logger.info("Sessions will expire after {} minutes of inactivity.",sessionTimeoutValue);
  executor.scheduleAtFixedRate(new SessionEvictionTask(sessionTimeoutValue * 60000l),1,1,TimeUnit.MINUTES);
}

public HashTokenSessionMap ( Environment environment ) { int sessionTimeoutValue ; try { sessionTimeoutValue = environment . getProperty ( API_SESSION_TIMEOUT , 60 ) ; } catch ( GuacamoleException e ) { logger . error ( "Unable to read guacamole.properties: {}" , e . getMessage ( ) ) ; logger . debug ( "Error while reading session timeout value." , e ) ; sessionTimeoutValue = 60 ; } logger . info ( "Sessions will expire after {} minutes of inactivity." , sessionTimeoutValue ) ; executor . scheduleAtFixedRate ( new SessionEvictionTask ( sessionTimeoutValue * 60000l ) , 1 , 1 , TimeUnit . MINUTES ) ; }
create a new hashtokensessionmap configured using the given environment .
