- public Object toSerializable() {
- return ThreePhaseCommitCohortMessages.AbortTransactionReply.newBuilder().build();
+ protected Object newLegacySerializedInstance() {
+ return SERIALIZED_INSTANCE;
+ }
+
+ 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 ||
+ message instanceof ThreePhaseCommitCohortMessages.AbortTransactionReply;