Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / CommitTransactionReply.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.datastore.messages;
9
10 import org.opendaylight.controller.cluster.datastore.DataStoreVersions;
11
12 @Deprecated(since = "9.0.0", forRemoval = true)
13 public final class CommitTransactionReply extends VersionedExternalizableMessage {
14     @java.io.Serial
15     private static final long serialVersionUID = -8342450250867395000L;
16
17     public static final CommitTransactionReply INSTANCE = new CommitTransactionReply();
18
19     public CommitTransactionReply() {
20     }
21
22     private CommitTransactionReply(final short version) {
23         super(version);
24     }
25
26     public static CommitTransactionReply instance(final short version) {
27         return version == DataStoreVersions.CURRENT_VERSION ? INSTANCE : new CommitTransactionReply(version);
28     }
29
30     public static boolean isSerializedType(final Object message) {
31         return message instanceof CommitTransactionReply;
32     }
33 }