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 static com.google.common.base.Verify.verifyNotNull;
11 import static java.util.Objects.requireNonNull;
13 @Deprecated(since = "7.0.0", forRemoval = true)
14 abstract class AbstractEnvelopeProxy<T extends Message<?, ?>, E extends Envelope<T>>
15 implements Envelope.SerialForm<T, E> {
17 private static final long serialVersionUID = 1L;
21 AbstractEnvelopeProxy() {
25 AbstractEnvelopeProxy(final E envelope) {
26 this.envelope = requireNonNull(envelope);
30 public final E envelope() {
31 return verifyNotNull(envelope);
35 public final void setEnvelope(final E envelope) {
36 this.envelope = requireNonNull(envelope);
40 public final Object readResolve() {