SLING-4080 - API to capture/measure application-level metrics

Change the method names as per suggestion by Oliver Lietz!

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1723718 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/commons/metrics/Counter.java b/src/main/java/org/apache/sling/commons/metrics/Counter.java
index 9f4f062..8269d5b 100644
--- a/src/main/java/org/apache/sling/commons/metrics/Counter.java
+++ b/src/main/java/org/apache/sling/commons/metrics/Counter.java
@@ -29,24 +29,24 @@
     /**
      * Increment the counter by one.
      */
-    void inc();
+    void increment();
 
     /**
      * Decrement the counter by one.
      */
-    void dec();
+    void decrement();
 
     /**
      * Increment the counter by {@code n}.
      *
      * @param n the amount by which the counter will be increased
      */
-    void inc(long n);
+    void increment(long n);
 
     /**
      * Decrement the counter by {@code n}.
      *
      * @param n the amount by which the counter will be decreased
      */
-    void dec(long n);
+    void decrement(long n);
 }
diff --git a/src/main/java/org/apache/sling/commons/metrics/NoopMetric.java b/src/main/java/org/apache/sling/commons/metrics/NoopMetric.java
index ed7a25b..e2aaac4 100644
--- a/src/main/java/org/apache/sling/commons/metrics/NoopMetric.java
+++ b/src/main/java/org/apache/sling/commons/metrics/NoopMetric.java
@@ -30,22 +30,22 @@
     }
 
     @Override
-    public void inc() {
+    public void increment() {
 
     }
 
     @Override
-    public void dec() {
+    public void decrement() {
 
     }
 
     @Override
-    public void inc(long n) {
+    public void increment(long n) {
 
     }
 
     @Override
-    public void dec(long n) {
+    public void decrement(long n) {
 
     }
 
diff --git a/src/main/java/org/apache/sling/commons/metrics/internal/CounterImpl.java b/src/main/java/org/apache/sling/commons/metrics/internal/CounterImpl.java
index f929410..bda240e 100644
--- a/src/main/java/org/apache/sling/commons/metrics/internal/CounterImpl.java
+++ b/src/main/java/org/apache/sling/commons/metrics/internal/CounterImpl.java
@@ -30,22 +30,22 @@
     }
 
     @Override
-    public void inc() {
+    public void increment() {
         counter.inc();
     }
 
     @Override
-    public void dec() {
+    public void decrement() {
         counter.dec();
     }
 
     @Override
-    public void inc(long n) {
+    public void increment(long n) {
         counter.inc(n);
     }
 
     @Override
-    public void dec(long n) {
+    public void decrement(long n) {
         counter.dec(n);
     }
 
diff --git a/src/test/java/org/apache/sling/commons/metrics/internal/MetricWrapperTest.java b/src/test/java/org/apache/sling/commons/metrics/internal/MetricWrapperTest.java
index 5489b31..3e58123 100644
--- a/src/test/java/org/apache/sling/commons/metrics/internal/MetricWrapperTest.java
+++ b/src/test/java/org/apache/sling/commons/metrics/internal/MetricWrapperTest.java
@@ -40,24 +40,24 @@
         Counter counter = registry.counter("test");
         CounterImpl counterStats = new CounterImpl(counter);
 
-        counterStats.inc();
+        counterStats.increment();
         assertEquals(1, counterStats.getCount());
         assertEquals(1, counter.getCount());
         assertEquals(1, counterStats.getCount());
 
-        counterStats.inc();
-        counterStats.inc();
+        counterStats.increment();
+        counterStats.increment();
         assertEquals(3, counterStats.getCount());
 
-        counterStats.dec();
+        counterStats.decrement();
         assertEquals(2, counterStats.getCount());
         assertEquals(2, counter.getCount());
 
-        counterStats.inc(7);
+        counterStats.increment(7);
         assertEquals(9, counterStats.getCount());
         assertEquals(9, counter.getCount());
 
-        counterStats.dec(5);
+        counterStats.decrement(5);
         assertEquals(4, counterStats.getCount());
         assertEquals(4, counter.getCount());