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.concepts;
10 import java.io.Serial;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.concepts.WritableIdentifier;
15 * Abstract Externalizable proxy for use with {@link RequestSuccess} subclasses.
17 * @param <T> Target identifier type
19 public abstract class AbstractSuccessProxy<T extends WritableIdentifier, C extends RequestSuccess<T, C>>
20 extends AbstractResponseProxy<T, C> {
22 private static final long serialVersionUID = 1L;
24 protected AbstractSuccessProxy() {
28 protected AbstractSuccessProxy(final @NonNull C success) {
33 final C createResponse(final T target, final long sequence) {
34 return createSuccess(target, sequence);
37 protected abstract @NonNull C createSuccess(@NonNull T target, long sequence);