/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.mdsal.binding.dom.codec.api; import com.google.common.annotations.Beta; import org.opendaylight.yangtools.yang.binding.BindingObject; /** * Caching variant of Binding to Normalized Node codec. Caching may introduce performance penalty to serialization and * deserialization but may decrease use of heap for repetitive objects. * * @param Binding representtion of data */ @Beta public interface BindingNormalizedNodeCachingCodec extends BindingNormalizedNodeCodec, AutoCloseable { /** * Invoking close will invalidate this codec and any of its child codecs and will invalidate cache. Any subsequent * calls to this codec will fail with {@link IllegalStateException} thrown. */ @Override void close(); }