KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > stats > counter > Counter


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.stats.counter;
5
6 /**
7  * A simple counter
8  */

9 public interface Counter {
10
11   long increment();
12
13   long decrement();
14
15   long getAndSet(long newValue);
16
17   long getValue();
18
19   long getMaxValue();
20
21   long getMinValue();
22
23   long increment(long amount);
24
25   long decrement(long amount);
26
27   void setValue(long newValue);
28
29 }
30
Popular Tags