From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- .../carbonado/sequence/SequenceValueProducer.html | 345 +++++++++++++++++++++ 1 file changed, 345 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/sequence/SequenceValueProducer.html (limited to 'apidocs/com/amazon/carbonado/sequence/SequenceValueProducer.html') diff --git a/apidocs/com/amazon/carbonado/sequence/SequenceValueProducer.html b/apidocs/com/amazon/carbonado/sequence/SequenceValueProducer.html new file mode 100644 index 0000000..44213bb --- /dev/null +++ b/apidocs/com/amazon/carbonado/sequence/SequenceValueProducer.html @@ -0,0 +1,345 @@ + + + + + + +SequenceValueProducer (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.sequence
+

Interface SequenceValueProducer

+
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      java.lang.StringnextDecimalValue() +
      Returns the next decimal string value from the sequence, which remains + positive.
      +
      intnextIntValue() +
      Returns the next value from the sequence, which may wrap negative if all + positive values are exhausted.
      +
      longnextLongValue() +
      Returns the next value from the sequence, which may wrap negative if all + positive values are exhausted.
      +
      java.lang.StringnextNumericalValue(int radix, + int minLength) +
      Returns the next numerical string value from the sequence, which remains + positive.
      +
      booleanreturnReservedValues() +
      Allow any unused reserved values to be returned for re-use.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        nextLongValue

        +
        long nextLongValue()
        +                   throws PersistException
        +
        Returns the next value from the sequence, which may wrap negative if all + positive values are exhausted. When sequence wraps back to initial + value, the sequence is fully exhausted, and an exception is thrown to + indicate this. + +

        Note: this method throws PersistException even for fetch failures + since this method is called by insert operations. Insert operations can + only throw a PersistException.

        +
        Throws:
        +
        PersistException - for fetch/persist failure or if sequence is exhausted.
        +
      • +
      + + + +
        +
      • +

        nextIntValue

        +
        int nextIntValue()
        +                 throws PersistException
        +
        Returns the next value from the sequence, which may wrap negative if all + positive values are exhausted. When sequence wraps back to initial + value, the sequence is fully exhausted, and an exception is thrown to + indicate this. + +

        Note: this method throws PersistException even for fetch failures + since this method is called by insert operations. Insert operations can + only throw a PersistException.

        +
        Throws:
        +
        PersistException - for fetch/persist failure or if sequence is + exhausted for int values.
        +
      • +
      + + + +
        +
      • +

        nextDecimalValue

        +
        java.lang.String nextDecimalValue()
        +                                  throws PersistException
        +
        Returns the next decimal string value from the sequence, which remains + positive. When sequence wraps back to initial value, the sequence is + fully exhausted, and an exception is thrown to indicate this. + +

        Note: this method throws PersistException even for fetch failures + since this method is called by insert operations. Insert operations can + only throw a PersistException.

        +
        Throws:
        +
        PersistException - for fetch/persist failure or if sequence is exhausted.
        +
      • +
      + + + +
        +
      • +

        nextNumericalValue

        +
        java.lang.String nextNumericalValue(int radix,
        +                                  int minLength)
        +                                    throws PersistException
        +
        Returns the next numerical string value from the sequence, which remains + positive. When sequence wraps back to initial value, the sequence is + fully exhausted, and an exception is thrown to indicate this. + +

        Note: this method throws PersistException even for fetch failures + since this method is called by insert operations. Insert operations can + only throw a PersistException.

        +
        Parameters:
        radix - use 2 for binary, 10 for decimal, 16 for hex. Max is 36.
        minLength - ensure string is at least this long (padded with zeros if + necessary) to ensure proper string sort
        +
        Throws:
        +
        PersistException - for fetch/persist failure or if sequence is exhausted.
        +
      • +
      + + + +
        +
      • +

        returnReservedValues

        +
        boolean returnReservedValues()
        +                             throws FetchException,
        +                                    PersistException
        +
        Allow any unused reserved values to be returned for re-use. If the + repository is shared by other processes, then reserved values might not + be returnable. + +

        This method should be called during the shutdown process of a + repository, although calling it does not invalidate this + SequenceValueGenerator. If getNextValue is called again, it will reserve + values again.

        +
        Returns:
        true if reserved values were returned
        +
        Throws:
        +
        FetchException
        +
        PersistException
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3