Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / ModifyTransactionSuccess.java
1 /*
2  * Copyright (c) 2016 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.access.commands;
9
10 import org.opendaylight.controller.cluster.access.ABIVersion;
11 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
12
13 /**
14  * Response to a {@link ModifyTransactionRequest} which does not have a {@link PersistenceProtocol}.
15  */
16 public final class ModifyTransactionSuccess extends TransactionSuccess<ModifyTransactionSuccess> {
17     @java.io.Serial
18     private static final long serialVersionUID = 1L;
19
20     public ModifyTransactionSuccess(final TransactionIdentifier identifier, final long sequence) {
21         super(identifier, sequence);
22     }
23
24     private ModifyTransactionSuccess(final ModifyTransactionSuccess success, final ABIVersion version) {
25         super(success, version);
26     }
27
28     @Override
29     protected MTS externalizableProxy(final ABIVersion version) {
30         return new MTS(this);
31     }
32
33     @Override
34     protected ModifyTransactionSuccess cloneAsVersion(final ABIVersion version) {
35         return new ModifyTransactionSuccess(this, version);
36     }
37 }