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.ObjectInput;
12 public final class FailureEnvelope extends ResponseEnvelope<RequestFailure<?, ?>> {
13 interface SerialForm extends ResponseEnvelope.SerialForm<RequestFailure<?, ?>, FailureEnvelope> {
15 default FailureEnvelope readExternal(final ObjectInput in, final long sessionId, final long txSequence,
16 final RequestFailure<?, ?> message, final long executionTimeNanos) {
17 return new FailureEnvelope(message, sessionId, txSequence, executionTimeNanos);
22 private static final long serialVersionUID = 1L;
24 public FailureEnvelope(final RequestFailure<?, ?> message, final long sessionId, final long txSequence,
25 final long executionTimeNanos) {
26 super(message, sessionId, txSequence, executionTimeNanos);
35 FailureEnvelopeProxy legacyProxy() {
36 return new FailureEnvelopeProxy(this);