8089856ed296b04179a5bf26bdd2f9b4b3a19d14
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / concepts / AbstractRequestFailureProxy.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.concepts;
9
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.yangtools.concepts.WritableIdentifier;
12
13 /**
14  * Abstract Externalizable proxy for use with {@link RequestFailure} subclasses.
15  *
16  * @param <T> Target identifier type
17  */
18 public abstract class AbstractRequestFailureProxy<T extends WritableIdentifier, C extends RequestFailure<T, C>>
19         extends AbstractResponseProxy<T, C> implements RequestFailure.SerialForm<T, C> {
20     @java.io.Serial
21     private static final long serialVersionUID = 1L;
22
23     protected AbstractRequestFailureProxy() {
24         // For Externalizable
25     }
26
27     protected AbstractRequestFailureProxy(final @NonNull C failure) {
28         super(failure);
29     }
30 }