diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2006-12-05 02:50:38 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2006-12-05 02:50:38 +0000 |
commit | 4b8aa7687090d79a9eb2123ed48bf26c3d9aed1f (patch) | |
tree | 3c8768c0d1b36c3d1b9f8278306c7b318e7114f9 /src/main/java/com/amazon/carbonado/spi | |
parent | 80fdb36c2780744f12d3fc527812ecf62980ad8b (diff) |
Added record version number to internal sequence generating Storable.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r-- | src/main/java/com/amazon/carbonado/spi/StoredSequence.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/StoredSequence.java b/src/main/java/com/amazon/carbonado/spi/StoredSequence.java index 0a5a19e..0685f61 100644 --- a/src/main/java/com/amazon/carbonado/spi/StoredSequence.java +++ b/src/main/java/com/amazon/carbonado/spi/StoredSequence.java @@ -22,6 +22,7 @@ import com.amazon.carbonado.Alias; import com.amazon.carbonado.Independent;
import com.amazon.carbonado.PrimaryKey;
import com.amazon.carbonado.Storable;
+import com.amazon.carbonado.Version;
/**
* Stores data for {@link SequenceValueGenerator}.
@@ -48,4 +49,12 @@ public interface StoredSequence extends Storable<StoredSequence> { */
long getNextValue();
void setNextValue(long value);
+
+ /**
+ * Record version number for this StoredSequence instance. Some encoding
+ * strategies require a version number.
+ */
+ @Version
+ int getVersionNumber();
+ void setVersionNumber(int version);
}
|