org.apache.directory.mitosis.common
Class DefaultCSNFactory

java.lang.Object
  extended by org.apache.directory.mitosis.common.DefaultCSNFactory
All Implemented Interfaces:
CSNFactory

public class DefaultCSNFactory
extends java.lang.Object
implements CSNFactory

A default CSNFactory implementation.

Author:
Apache Directory Project

Constructor Summary
DefaultCSNFactory()
           
 
Method Summary
 CSN newInstance(java.lang.String replicaId)
          Returns a new CSN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCSNFactory

public DefaultCSNFactory()
Method Detail

newInstance

public CSN newInstance(java.lang.String replicaId)
Returns a new CSN. Generated CSN can be duplicate if user generates CSNs more than 2G times a milliseconds.

Specified by:
newInstance in interface CSNFactory
Parameters:
replicaId - Replica ID. ReplicaID must be 1-8 digit alphanumeric string.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.