001/*
002 * Copyright 2010-2018 Ping Identity Corporation
003 * All Rights Reserved.
004 */
005/*
006 * Copyright (C) 2015-2018 Ping Identity Corporation
007 *
008 * This program is free software; you can redistribute it and/or modify
009 * it under the terms of the GNU General Public License (GPLv2 only)
010 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
011 * as published by the Free Software Foundation.
012 *
013 * This program is distributed in the hope that it will be useful,
014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
016 * GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with this program; if not, see <http://www.gnu.org/licenses>.
020 */
021package com.unboundid.ldap.sdk.unboundidds.extensions;
022
023
024
025import com.unboundid.asn1.ASN1Element;
026import com.unboundid.asn1.ASN1Null;
027import com.unboundid.util.NotMutable;
028import com.unboundid.util.ThreadSafety;
029import com.unboundid.util.ThreadSafetyLevel;
030
031
032
033/**
034 * This class provides an implementation of a changelog batch starting point
035 * which may be used to start a batch of changes at the end of the changelog.
036 * The first change of the batch will be the next change processed on any of the
037 * servers in the replication topology.
038 * <BR>
039 * <BLOCKQUOTE>
040 *   <B>NOTE:</B>  This class, and other classes within the
041 *   {@code com.unboundid.ldap.sdk.unboundidds} package structure, are only
042 *   supported for use against Ping Identity, UnboundID, and
043 *   Nokia/Alcatel-Lucent 8661 server products.  These classes provide support
044 *   for proprietary functionality or for external specifications that are not
045 *   considered stable or mature enough to be guaranteed to work in an
046 *   interoperable way with other types of LDAP servers.
047 * </BLOCKQUOTE>
048 */
049@NotMutable()
050@ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
051public final class EndOfChangelogStartingPoint
052       extends ChangelogBatchStartingPoint
053{
054  /**
055   * The BER type to use for the ASN.1 element used to encode this starting
056   * point.
057   */
058  static final byte TYPE = (byte) 0x83;
059
060
061
062  /**
063   * The pre-encoded representation of this changelog batch starting point.
064   */
065  private static final ASN1Null ENCODED_ELEMENT = new ASN1Null(TYPE);
066
067
068
069  /**
070   * The serial version UID for this serializable class.
071   */
072  private static final long serialVersionUID = -3391952489079984126L;
073
074
075
076  /**
077   * Creates a new instance of this changelog batch starting point.
078   */
079  public EndOfChangelogStartingPoint()
080  {
081    // No implementation is required.
082  }
083
084
085
086  /**
087   * {@inheritDoc}
088   */
089  @Override()
090  public ASN1Element encode()
091  {
092    return ENCODED_ELEMENT;
093  }
094
095
096
097  /**
098   * {@inheritDoc}
099   */
100  @Override()
101  public void toString(final StringBuilder buffer)
102  {
103    buffer.append("EndOfChangelogStartingPoint()");
104  }
105}