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