Skip to content

Commit

Permalink
docs(s3stream/version): statement of features supported by S3Stream V1 (
Browse files Browse the repository at this point in the history
#1943)

docs(s3stream/version): statement of features supported by S3Stream V1 (#1942)

Signed-off-by: Ning Yu <ningyu@automq.com>
  • Loading branch information
Chillax-0v0 authored Aug 26, 2024
1 parent 738ae15 commit b8edef1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions s3stream/src/main/java/com/automq/stream/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

public enum Version {
V0((short) 1),
// Support StreamObjectCompactV1 (based on composite object)
// Support wal registration
V1((short) 2);

public static final Version LATEST = V1;
Expand Down Expand Up @@ -41,6 +43,10 @@ public boolean isStreamObjectCompactV1Supported() {
return isAtLeast(V1);
}

public boolean isWalRegistrationSupported() {
return isAtLeast(V1);
}

public boolean isAtLeast(Version otherVersion) {
return this.compareTo(otherVersion) >= 0;
}
Expand Down

0 comments on commit b8edef1

Please sign in to comment.