2 * Copyright (c) 2019 Nordix Foundation. 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.remote.rpc.messages;
10 import java.io.Serializable;
11 import org.eclipse.jdt.annotation.Nullable;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
15 * An abstract base class for invocation responses. Specialized via {@link ActionResponse} and {@link RpcResponse}.
17 public abstract class AbstractResponse<T extends NormalizedNode<?, ?>> implements Serializable {
18 private static final long serialVersionUID = 1L;
20 private final transient @Nullable T output;
22 public AbstractResponse(final @Nullable T output) {
26 public final @Nullable T getOutput() {
30 abstract Object writeReplace();