892b44d33bd70f4b8d8a5608c1534bd864d9d700
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / concepts / FailureEnvelopeProxy.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.concepts;
9
10 final class FailureEnvelopeProxy extends AbstractResponseEnvelopeProxy<RequestFailure<?, ?>> {
11     private static final long serialVersionUID = 1L;
12
13     public FailureEnvelopeProxy() {
14         // for Externalizable
15     }
16
17     FailureEnvelopeProxy(final FailureEnvelope envelope) {
18         super(envelope);
19     }
20
21     @Override
22     FailureEnvelope createEnvelope(final RequestFailure<?, ?> message, final long sessionId, final long txSequence) {
23         return new FailureEnvelope(message, sessionId, txSequence);
24     }
25 }