void scheduleToTimerPool(){
  if (sessionPollerPool.isPollingEnabled()) {
    long timeoutTime=(session.getLatestRefreshTime() + (session.getMaxIdleTime() * 60)) * 1000;
    if (sessionPollerPool.getCacheBasedPolling()) {
      timeoutTime=Math.min((session.getLatestRefreshTime() + (session.getMaxCachingTime() * 60)) * 1000,timeoutTime);
    }
    rescheduleIfWillTimeOutBeforeExecution(timeoutTime);
  }
 else {
    if ((sessionPollerPool.isSessionCleanupEnabled()) && willExpire(session.getMaxSessionTime())) {
      long timeoutTime=(session.getLatestRefreshTime() + (session.getMaxSessionTime() * 60)) * 1000;
      rescheduleIfWillTimeOutBeforeExecution(timeoutTime);
    }
  }
}

void scheduleToTimerPool ( ) { if ( sessionPollerPool . isPollingEnabled ( ) ) { long timeoutTime = ( session . getLatestRefreshTime ( ) + ( session . getMaxIdleTime ( ) * 60 ) ) * 1000 ; if ( sessionPollerPool . getCacheBasedPolling ( ) ) { timeoutTime = Math . min ( ( session . getLatestRefreshTime ( ) + ( session . getMaxCachingTime ( ) * 60 ) ) * 1000 , timeoutTime ) ; } rescheduleIfWillTimeOutBeforeExecution ( timeoutTime ) ; } else { if ( ( sessionPollerPool . isSessionCleanupEnabled ( ) ) && willExpire ( session . getMaxSessionTime ( ) ) ) { long timeoutTime = ( session . getLatestRefreshTime ( ) + ( session . getMaxSessionTime ( ) * 60 ) ) * 1000 ; rescheduleIfWillTimeOutBeforeExecution ( timeoutTime ) ; } } }
schedule this culler to be run , based on the state of the session .
