private void snapshotConfig ( ) { synchronized ( configManager ) { maximum = configManager . getPoolMaximum ( poolInfo , getType ( ) ) ; minimum = configManager . getPoolMinimum ( poolInfo , getType ( ) ) ; weight = configManager . getWeight ( poolInfo ) ; priority = configManager . getPriority ( poolInfo ) ; preemptable = configManager . isPoolPreemptable ( poolInfo ) ; shareStarvingRatio = configManager . getShareStarvingRatio ( ) ; minPreemptPeriod = configManager . getMinPreemptPeriod ( ) ; starvingTimeForShare = configManager . getStarvingTimeForShare ( ) ; starvingTimeForMinimum = configManager . getStarvingTimeForMinimum ( ) ; } }
Get the snapshot of the configuration from the configuration manager . Synchronized on config manager to ensure that config is atomically updated per pool .