Disconnect mdsal-bind-dom-codec yangtools/mdsal APIs
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / api / BindingNormalizedNodeCachingCodec.java
1 /*
2  * Copyright (c) 2015 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.yangtools.binding.data.codec.api;
9
10 import org.opendaylight.yangtools.yang.binding.DataObject;
11
12 /**
13  * Caching variant of Binding to Normalized Node codec.
14  *
15  * Caching may introduce performance penalty to serialization / deserialization
16  * but may decrease use of heap for repetitive objects.
17  *
18  * @param <T> Binding representtion of data
19  */
20 @Deprecated
21 public interface BindingNormalizedNodeCachingCodec<T extends DataObject> extends BindingNormalizedNodeCodec<T>, AutoCloseable {
22     /**
23      * Invoking close will invalidate this codec and any of its child
24      * codecs and will invalidate cache.
25      *
26      * Any subsequent calls to this codec will fail with {@link IllegalStateException}
27      * thrown.
28      */
29     @Override
30     void close();
31 }