- @Override
- public Object toSerializable() {
- return ThreePhaseCommitCohortMessages.CommitTransactionReply.newBuilder().build();
+ public CommitTransactionReply() {
+ }
+
+ private CommitTransactionReply(short version) {
+ super(version);
+ }
+
+ public static CommitTransactionReply instance(short version) {
+ return version == DataStoreVersions.CURRENT_VERSION ? INSTANCE : new CommitTransactionReply(version);
+ }
+
+ public static boolean isSerializedType(Object message) {
+ return message instanceof CommitTransactionReply;