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