protected AbstractIoSession(IoService service){
  this.service=service;
  this.handler=service.getHandler();
  long currentTime=System.currentTimeMillis();
  creationTime=currentTime;
  lastThroughputCalculationTime=currentTime;
  lastReadTime=currentTime;
  lastWriteTime=currentTime;
  lastIdleTimeForBoth=currentTime;
  lastIdleTimeForRead=currentTime;
  lastIdleTimeForWrite=currentTime;
  closeFuture.addListener(SCHEDULED_COUNTER_RESETTER);
  sessionId=idGenerator.incrementAndGet();
}

protected AbstractIoSession ( IoService service ) { this . service = service ; this . handler = service . getHandler ( ) ; long currentTime = System . currentTimeMillis ( ) ; creationTime = currentTime ; lastThroughputCalculationTime = currentTime ; lastReadTime = currentTime ; lastWriteTime = currentTime ; lastIdleTimeForBoth = currentTime ; lastIdleTimeForRead = currentTime ; lastIdleTimeForWrite = currentTime ; closeFuture . addListener ( SCHEDULED_COUNTER_RESETTER ) ; sessionId = idGenerator . incrementAndGet ( ) ; }
todo add method documentation
