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 com.google.common.base.Preconditions;
12 import org.opendaylight.controller.cluster.access.ABIVersion;
13 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
16 * Successful reply to a coordinated commit request. It contains a reference to the actor which is handling the commit
19 * @author Robert Varga
21 public final class TransactionCanCommitSuccess extends TransactionSuccess<TransactionCanCommitSuccess> {
22 private static final long serialVersionUID = 1L;
23 private final ActorRef cohort;
25 public TransactionCanCommitSuccess(final TransactionIdentifier identifier, final ActorRef cohort) {
27 this.cohort = Preconditions.checkNotNull(cohort);
30 public ActorRef getCohort() {
35 protected AbstractTransactionSuccessProxy<TransactionCanCommitSuccess> externalizableProxy(final ABIVersion version) {
36 return new TransactionCanCommitSuccessProxyV1(this);
40 protected TransactionCanCommitSuccess cloneAsVersion(final ABIVersion version) {