@@ -0,0 +1,1406 @@
+/*%0A * #%25L%0A * servo%0A * %25%25%0A * Copyright (C) 2011 Netflix%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0Apackage com.netflix.servo.publish;%0A%0Aimport java.util.List;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class SlowMetricObserver extends BaseMetricObserver %7B%0A%0A    private static final Logger LOGGER =%0A        LoggerFactory.getLogger(SlowMetricObserver.class);%0A%0A    private final MetricObserver wrappedObserver;%0A%0A    private final long delay;%0A%0A    public SlowMetricObserver(MetricObserver observer, long delay) %7B%0A        super(%22slow%22);%0A        this.wrappedObserver = observer;%0A        this.delay = delay;%0A    %7D%0A%0A    public void update(List%3CMetric%3E metrics) %7B%0A        try %7B%0A            Thread.sleep(delay);%0A        %7D catch (InterruptedException e) %7B%0A            LOGGER.warn(%22sleep interrupted%22, e);%0A        %7D%0A        wrappedObserver.update(metrics);%0A    %7D%0A%7D%0A

add metric observer for testing out slow updates