@ Override protected void initializeImpl ( ) { //init data structures this . data = new HashMap < FaxClientSpi , Map < FaxJob , FaxJobStatus > > ( 20 ) ; //get polling interval String value = this . getConfigurationValue ( FaxJobMonitorImpl . POLLING_INTERVAL_IN_MILLIES_PROPERTY_KEY ) ; this . pollingInterval = 5000 ; if ( value != null ) { this . pollingInterval = Long . parseLong ( value ) ; if ( this . pollingInterval <= 0 ) { throw new FaxException ( "Polling interval set to an invalid value: " + this . pollingInterval ) ; } } //get fixed polling interval flag value = this . getConfigurationValue ( FaxJobMonitorImpl . FIXED_POLLING_INTERVAL_PROPERTY_KEY ) ; this . fixedPollingInterval = Boolean . parseBoolean ( value ) ; //get poller thread priority value = this . getConfigurationValue ( FaxJobMonitorImpl . POLLING_THREAD_PRIORITY_PROPERTY_KEY ) ; this . pollingThreadPriority = 2 ; if ( value != null ) { this . pollingThreadPriority = Integer . parseInt ( value ) ; if ( ( this . pollingThreadPriority < Thread . MIN_PRIORITY ) || ( this . pollingThreadPriority > Thread . MAX_PRIORITY ) ) { throw new FaxException ( "Polling thread priority set to an invalid value: " + this . pollingThreadPriority ) ; } } //create poller task this . pollerTask = new PollerTask ( this ) ; }
This function initializes the fax job monitor .