7542c4cb3640578a0149fc8b43864ca762238f00
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / concepts / RequestSuccess.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 java.io.Serial;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.controller.cluster.access.ABIVersion;
13 import org.opendaylight.yangtools.concepts.WritableIdentifier;
14
15 /**
16  * A successful reply to a {@link Request}.
17  *
18  * @param <T> Target identifier type
19  */
20 public abstract class RequestSuccess<T extends WritableIdentifier, C extends RequestSuccess<T, C>> extends
21         Response<T, C> {
22     @Serial
23     private static final long serialVersionUID = 1L;
24
25     protected RequestSuccess(final @NonNull C success,  final @NonNull ABIVersion version) {
26         super(success, version);
27     }
28
29     protected RequestSuccess(final @NonNull T target, final long sequence) {
30         super(target, sequence);
31     }
32
33     @Override
34     protected abstract AbstractSuccessProxy<T, C> externalizableProxy(ABIVersion version);
35 }