1 package com.android.helpers;
2 
3 import java.util.Map;
4 
5 public interface ICollectorHelper<T> {
6 
7     /**
8      * This method will have setup to start collecting the metrics.
9      */
startCollecting()10     boolean startCollecting();
11 
12     /**
13      * This method will retrieve the metrics.
14      */
getMetrics()15     Map<String, T> getMetrics();
16 
17     /**
18      * This method will do the tear down to stop collecting the metrics.
19      */
stopCollecting()20     boolean stopCollecting();
21 
22 }
23