org.sadun.util.polling
Class CoreSequenceNumberGenerator

java.lang.Object
  extended byorg.sadun.util.polling.CoreSequenceNumberGenerator
All Implemented Interfaces:
SequenceNumberGenerator

public class CoreSequenceNumberGenerator
extends java.lang.Object
implements SequenceNumberGenerator

A SequenceNumberGenerator which keeps the sequence in core, on a per-jvm basis.

This is used by default by ManagedDirectoryPoller.

Author:
Cristiano Sadun

Constructor Summary
CoreSequenceNumberGenerator()
           
 
Method Summary
 long getNextSequenceNumber()
          Return the next sequence number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreSequenceNumberGenerator

public CoreSequenceNumberGenerator()
Method Detail

getNextSequenceNumber

public long getNextSequenceNumber()
Description copied from interface: SequenceNumberGenerator
Return the next sequence number.

This method may or may not be threadsafe, depending on the implementation class.

Specified by:
getNextSequenceNumber in interface SequenceNumberGenerator
Returns:
the next sequence number.


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.