2 * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.cluster.access.commands;
10 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
13 * Externalizable proxy for use with {@link TransactionPurgeResponse}. It implements the initial (Boron)
14 * serialization format.
16 * @author Robert Varga
18 final class TransactionPurgeResponseProxyV1 extends AbstractTransactionSuccessProxy<TransactionPurgeResponse> {
19 private static final long serialVersionUID = 1L;
21 // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
22 // be able to create instances via reflection.
23 @SuppressWarnings("checkstyle:RedundantModifier")
24 public TransactionPurgeResponseProxyV1() {
28 TransactionPurgeResponseProxyV1(final TransactionPurgeResponse success) {
33 protected TransactionPurgeResponse createSuccess(final TransactionIdentifier target, final long sequence) {
34 return new TransactionPurgeResponse(target, sequence);