8ab450d8d34adb950824dd3e11c058e6e22d6ec1
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / concepts / RequestEnvelopeProxy.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 RequestEnvelopeProxy extends AbstractEnvelopeProxy<Request<?, ?>> {
11     private static final long serialVersionUID = 1L;
12
13     public RequestEnvelopeProxy() {
14         // for Externalizable
15     }
16
17     RequestEnvelopeProxy(final RequestEnvelope envelope) {
18         super(envelope);
19     }
20
21     @Override
22     RequestEnvelope createEnvelope(final Request<?, ?> message, final long sessionId, final long txSequence) {
23         return new RequestEnvelope(message, sessionId, txSequence);
24     }
25 }