import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-/**
- * @author Kevin Wang
- */
public final class PerTableTypeRouteCounter {
private static final Logger LOG = LoggerFactory.getLogger(PerTableTypeRouteCounter.class);
return this.counters.getOrDefault(Preconditions.checkNotNull(tablesKey), createCounter(tablesKey));
}
- /**
- * Get the counter with given tablesKey
- * @param tablesKey
- * @return
- */
- public final UnsignedInt32Counter getCounter(@Nonnull final TablesKey tablesKey) {
- return this.counters.get(Preconditions.checkNotNull(tablesKey));
- }
-
/**
* Get the counter with given tablesKey. Create an empty counter if it doesn't exist
* This method will put the created empty counter back to map