2 * Copyright (c) 2016 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 akka.actor.ActorRef;
11 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
14 * Externalizable proxy for use with {@link TransactionPreCommitRequest}. It implements the initial (Boron)
15 * serialization format.
17 * @author Robert Varga
19 final class TransactionPreCommitRequestProxyV1 extends AbstractTransactionRequestProxy<TransactionPreCommitRequest> {
20 private static final long serialVersionUID = 1L;
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 TransactionPreCommitRequestProxyV1() {
29 TransactionPreCommitRequestProxyV1(final TransactionPreCommitRequest request) {
34 protected TransactionPreCommitRequest createRequest(final TransactionIdentifier target, final long sequence,
35 final ActorRef replyTo) {
36 return new TransactionPreCommitRequest(target, sequence, replyTo);