Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / TransactionPurgeResponse.java
1 /*
2  * Copyright (c) 2017 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  * Successful reply to a {@link TransactionPurgeRequest}.
15  */
16 // FIXME: rename to TransactionPurgeSuccess
17 public final class TransactionPurgeResponse extends TransactionSuccess<TransactionPurgeResponse> {
18     @java.io.Serial
19     private static final long serialVersionUID = 1L;
20
21     private TransactionPurgeResponse(final TransactionPurgeResponse success, final ABIVersion version) {
22         super(success, version);
23     }
24
25     public TransactionPurgeResponse(final TransactionIdentifier identifier, final long sequence) {
26         super(identifier, sequence);
27     }
28
29     @Override
30     protected TPS externalizableProxy(final ABIVersion version) {
31         return new TPS(this);
32     }
33
34     @Override
35     protected TransactionPurgeResponse cloneAsVersion(final ABIVersion version) {
36         return new TransactionPurgeResponse(this, version);
37     }
38 }