mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
02.48.2013 f9e5baa3fe03fb55c0c5ccbba2ed0984026dc060
CSN.java, CSNGenerator.java:
Updated javadoc.
2 files modified
17 ■■■■ changed files
opends/src/server/org/opends/server/replication/common/CSN.java 11 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/CSNGenerator.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/CSN.java
@@ -27,8 +27,6 @@
 */
package org.opends.server.replication.common;
import java.io.Serializable;
import java.util.Date;
@@ -39,6 +37,9 @@
/**
 * Class used to represent Change Sequence Numbers.
 *
 * @see <a href="http://tools.ietf.org/html/draft-ietf-ldup-infomod-08"
 * >Inspiration for this class comes from LDAPChangeSequenceNumber</a>
 */
public class CSN implements Serializable, Comparable<CSN>
{
@@ -63,6 +64,12 @@
  private static final long serialVersionUID = -8802722277749190740L;
  private final long timeStamp;
  /**
   * The sequence number is set to zero at the start of each millisecond, and
   * incremented by one for each update operation that occurs within that
   * millisecond. It allows to distinguish changes that have been done in the
   * same millisecond.
   */
  private final int seqnum;
  private final int serverId;
opends/src/server/org/opends/server/replication/common/CSNGenerator.java
@@ -38,6 +38,12 @@
public class CSNGenerator
{
  private long lastTime;
  /**
   * The sequence number allows to distinguish changes that have been done in
   * the same millisecond.
   *
   * @see #lastTime
   */
  private int seqnum;
  private int serverId;