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 first change available
042     * in the changelogs of all servers in the replication topology.
043     */
044    @NotMutable()
045    @ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
046    public final class BeginningOfChangelogStartingPoint
047           extends ChangelogBatchStartingPoint
048    {
049      /**
050       * The BER type to use for the ASN.1 element used to encode this starting
051       * point.
052       */
053      static final byte TYPE = (byte) 0x82;
054    
055    
056    
057      /**
058       * The pre-encoded representation of this changelog batch starting point.
059       */
060      private static final ASN1Null ENCODED_ELEMENT = new ASN1Null(TYPE);
061    
062    
063    
064      /**
065       * The serial version UID for this serializable class.
066       */
067      private static final long serialVersionUID = 8048301335476843820L;
068    
069    
070    
071      /**
072       * Creates a new instance of this changelog batch starting point.
073       */
074      public BeginningOfChangelogStartingPoint()
075      {
076        // No implementation is required.
077      }
078    
079    
080    
081      /**
082       * {@inheritDoc}
083       */
084      @Override()
085      public ASN1Element encode()
086      {
087        return ENCODED_ELEMENT;
088      }
089    
090    
091    
092      /**
093       * {@inheritDoc}
094       */
095      @Override()
096      public void toString(final StringBuilder buffer)
097      {
098        buffer.append("BeginningOfChangelogStartingPoint()");
099      }
100    }