BUG-5280: implement transaction dispatch
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / LocalHistoryFailure.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 com.google.common.annotations.Beta;
11 import org.opendaylight.controller.cluster.access.ABIVersion;
12 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
13 import org.opendaylight.controller.cluster.access.concepts.RequestException;
14 import org.opendaylight.controller.cluster.access.concepts.RequestFailure;
15
16 /**
17  * Generic {@link RequestFailure} involving a {@link LocalHistoryRequest}.
18  *
19  * @author Robert Varga
20  */
21 @Beta
22 public final class LocalHistoryFailure extends RequestFailure<LocalHistoryIdentifier, LocalHistoryFailure> {
23     private static final long serialVersionUID = 1L;
24
25     LocalHistoryFailure(final LocalHistoryIdentifier target, final RequestException cause) {
26         super(target, cause);
27     }
28
29     @Override
30     protected LocalHistoryFailure cloneAsVersion(final ABIVersion version) {
31         return this;
32     }
33
34     @Override
35     protected LocalHistoryFailureProxyV1 externalizableProxy(final ABIVersion version) {
36         return new LocalHistoryFailureProxyV1(this);
37     }
38 }