Track skipped transactions
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / SkipTransactionsResponseProxyV1.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.concepts.TransactionIdentifier;
11
12 /**
13  * Externalizable proxy for use with {@link SkipTransactionsResponse}. It implements the initial (Phosphorus SR1)
14  * serialization format.
15  */
16 final class SkipTransactionsResponseProxyV1 extends AbstractTransactionSuccessProxy<SkipTransactionsResponse> {
17     private static final long serialVersionUID = 1L;
18
19     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
20     // be able to create instances via reflection.
21     @SuppressWarnings("checkstyle:RedundantModifier")
22     public SkipTransactionsResponseProxyV1() {
23         // For Externalizable
24     }
25
26     SkipTransactionsResponseProxyV1(final SkipTransactionsResponse success) {
27         super(success);
28     }
29
30     @Override
31     protected SkipTransactionsResponse createSuccess(final TransactionIdentifier target, final long sequence) {
32         return new SkipTransactionsResponse(target, sequence);
33     }
34 }