All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.controller.cluster.access.concepts.AbstractResponseProxy Maven / Gradle / Ivy

/*
 * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.controller.cluster.access.concepts;

import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.concepts.WritableIdentifier;

/**
 * Abstract Externalizable proxy class to use with {@link Response} subclasses.
 *
 * @author Robert Varga
 *
 * @param  Target identifier type
 * @param  Message class
 */
abstract class AbstractResponseProxy>
        extends AbstractMessageProxy {
    private static final long serialVersionUID = 1L;

    protected AbstractResponseProxy() {
        // for Externalizable
    }

    AbstractResponseProxy(final @NonNull C response) {
        super(response);
    }

    @Override
    final C createMessage(final T target, final long sequence) {
        return createResponse(target, sequence);
    }

    abstract @NonNull C createResponse(@NonNull T target, long sequence);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy