@Override public PollResult startPoll(PollController conn){
  try {
    boolean isNew=conn.enableKeepaliveIfNew(this);
    if (!enableKeepalive(conn,isNew)) {
      return PollResult.CLOSED;
    }
    if (conn.toKeepaliveStart()) {
      _activeCount.incrementAndGet();
      return PollResult.START;
    }
 else {
      return PollResult.DATA;
    }
  }
 catch (  IOException e) {
    conn.onPollReadClose();
    throw new IllegalStateException(e);
  }
}

@ Override public PollResult startPoll ( PollController conn ) { try { boolean isNew = conn . enableKeepaliveIfNew ( this ) ; if ( ! enableKeepalive ( conn , isNew ) ) { return PollResult . CLOSED ; } if ( conn . toKeepaliveStart ( ) ) { _activeCount . incrementAndGet ( ) ; return PollResult . START ; } else { return PollResult . DATA ; } } catch ( IOException e ) { conn . onPollReadClose ( ) ; throw new IllegalStateException ( e ) ; } }
adds a keepalive connection .
