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 com.google.common.annotations.Beta;
11 import java.io.Externalizable;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yangtools.concepts.WritableIdentifier;
16 * Abstract Externalizable proxy for use with {@link RequestSuccess} subclasses.
18 * @author Robert Varga
20 * @param <T> Target identifier type
23 public abstract class AbstractSuccessProxy<T extends WritableIdentifier, C extends RequestSuccess<T, C>>
24 extends AbstractResponseProxy<T, C> implements Externalizable {
25 private static final long serialVersionUID = 1L;
27 protected AbstractSuccessProxy() {
31 protected AbstractSuccessProxy(@Nonnull final C success) {
36 final C createResponse(final T target, final long sequence) {
37 return createSuccess(target, sequence);
41 protected abstract C createSuccess(@Nonnull T target, long sequence);