cc.glsn
Class SyncCounter

java.lang.Object
  extended by cc.glsn.SyncCounter
All Implemented Interfaces:
Serializable

public class SyncCounter
extends Object
implements Serializable

Sycnronized counter class, uses long. Always starts at Start+1. Wraps around to zero.

See Also:
Serialized Form

Constructor Summary
SyncCounter()
           
SyncCounter(long Start)
           
 
Method Summary
 long getNext()
           
 long getPrev()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncCounter

public SyncCounter()

SyncCounter

public SyncCounter(long Start)
Method Detail

getNext

public long getNext()

getPrev

public long getPrev()