com.veraxsystems.icmp.jni.handlers
Class Counter

java.lang.Object
  extended by com.veraxsystems.icmp.jni.handlers.Counter

public class Counter
extends java.lang.Object

Thread safe counter


Constructor Summary
Counter()
           
 
Method Summary
 int getCount()
          Get value of counter
 void inc()
          Increase counter value by one
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Method Detail

inc

public void inc()
Increase counter value by one


getCount

public int getCount()
Get value of counter

Returns:
integer counter value