Improve segmented journal actor metrics
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / IncrementTransactionSequenceSuccessProxyV1.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.concepts.TransactionIdentifier;
11
12 /**
13  * Externalizable proxy for use with {@link IncrementTransactionSequenceSuccess}. It implements the initial (Boron)
14  * serialization format.
15  *
16  * @author Robert Varga
17  */
18 final class IncrementTransactionSequenceSuccessProxyV1
19         extends AbstractTransactionSuccessProxy<IncrementTransactionSequenceSuccess> {
20     private static final long serialVersionUID = 1L;
21
22     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
23     // be able to create instances via reflection.
24     @SuppressWarnings("checkstyle:RedundantModifier")
25     public IncrementTransactionSequenceSuccessProxyV1() {
26         // For Externalizable
27     }
28
29     IncrementTransactionSequenceSuccessProxyV1(final IncrementTransactionSequenceSuccess request) {
30         super(request);
31     }
32
33     @Override
34     protected IncrementTransactionSequenceSuccess createSuccess(final TransactionIdentifier target,
35             final long sequence) {
36         return new IncrementTransactionSequenceSuccess(target, sequence);
37     }
38 }