org.opendaylight.controller.cluster.access.concepts.RequestSuccess 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 java.io.IOException;
import java.io.ObjectOutput;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.controller.cluster.access.ABIVersion;
import org.opendaylight.yangtools.concepts.WritableIdentifier;
/**
* A successful reply to a {@link Request}.
*
* @param Target identifier type
*/
public abstract class RequestSuccess>
extends Response {
protected interface SerialForm>
extends Response.SerialForm {
@Override
default void writeExternal(final ObjectOutput out, final C msg) throws IOException {
// Defaults to no-op
}
}
@java.io.Serial
private static final long serialVersionUID = 1L;
protected RequestSuccess(final @NonNull C success, final @NonNull ABIVersion version) {
super(success, version);
}
protected RequestSuccess(final @NonNull T target, final long sequence) {
super(target, sequence);
}
}