001 /*
002 * Copyright 2010-2015 UnboundID Corp.
003 * All Rights Reserved.
004 */
005 /*
006 * Copyright (C) 2015 UnboundID Corp.
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 */
021 package com.unboundid.ldap.sdk.unboundidds.extensions;
022
023
024
025 import com.unboundid.asn1.ASN1Element;
026 import com.unboundid.asn1.ASN1Null;
027 import com.unboundid.util.NotMutable;
028 import com.unboundid.util.ThreadSafety;
029 import com.unboundid.util.ThreadSafetyLevel;
030
031
032
033 /**
034 * <BLOCKQUOTE>
035 * <B>NOTE:</B> This class is part of the Commercial Edition of the UnboundID
036 * LDAP SDK for Java. It is not available for use in applications that
037 * include only the Standard Edition of the LDAP SDK, and is not supported for
038 * use in conjunction with non-UnboundID products.
039 * </BLOCKQUOTE>
040 * This class provides an implementation of a changelog batch starting point
041 * which may be used to start a batch of changes at the end of the changelog.
042 * The first change of the batch will be the next change processed on any of the
043 * servers in the replication topology.
044 */
045 @NotMutable()
046 @ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
047 public final class EndOfChangelogStartingPoint
048 extends ChangelogBatchStartingPoint
049 {
050 /**
051 * The BER type to use for the ASN.1 element used to encode this starting
052 * point.
053 */
054 static final byte TYPE = (byte) 0x83;
055
056
057
058 /**
059 * The pre-encoded representation of this changelog batch starting point.
060 */
061 private static final ASN1Null ENCODED_ELEMENT = new ASN1Null(TYPE);
062
063
064
065 /**
066 * The serial version UID for this serializable class.
067 */
068 private static final long serialVersionUID = -3391952489079984126L;
069
070
071
072 /**
073 * Creates a new instance of this changelog batch starting point.
074 */
075 public EndOfChangelogStartingPoint()
076 {
077 // No implementation is required.
078 }
079
080
081
082 /**
083 * {@inheritDoc}
084 */
085 @Override()
086 public ASN1Element encode()
087 {
088 return ENCODED_ELEMENT;
089 }
090
091
092
093 /**
094 * {@inheritDoc}
095 */
096 @Override()
097 public void toString(final StringBuilder buffer)
098 {
099 buffer.append("EndOfChangelogStartingPoint()");
100 }
101 }