/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = new HashMap<>(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = new HashMap<>(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = new HashMap<>(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = new HashMap<>(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = Maps.newHashMap(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = Maps.newHashMap(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }
/** * Build a new instance of execution statistics. * * @return new instance of execution statistics. */ public ExecutionStatisticsImpl build() { final Map<Long, TimeWindowStatistics> newIntervalStatistics = Maps.newHashMap(); for (final Map.Entry<Long, TimeWindowStatisticsImpl.Builder> builderEntry : intervalStatistics.entrySet()) { newIntervalStatistics.put(builderEntry.getKey(), builderEntry.getValue().build()); } // cache when request rate is 0 return new ExecutionStatisticsImpl(lastStartTime, newIntervalStatistics); } }