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 final class FailureEnvelopeProxy extends AbstractResponseEnvelopeProxy<RequestFailure<?, ?>> {
11 private static final long serialVersionUID = 1L;
13 // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to be
14 // able to create instances via reflection.
15 @SuppressWarnings("checkstyle:RedundantModifier")
16 public FailureEnvelopeProxy() {
20 FailureEnvelopeProxy(final FailureEnvelope envelope) {
25 ResponseEnvelope<RequestFailure<?, ?>> createEnvelope(final RequestFailure<?, ?> message, final long sessionId,
26 final long txSequence, final long executionTimeNanos) {
27 return new FailureEnvelope(message, sessionId, txSequence, executionTimeNanos);