Optimized version of NormalizedNode Serialization
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / serialization / NormalizedNodeSerializationContext.java
1 /*
2  * Copyright (c) 2014 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
9 package org.opendaylight.controller.cluster.datastore.node.utils.serialization;
10
11 import java.net.URI;
12 import java.util.Date;
13
14 /**
15  * NormalizedNodeSerializationContext provides methods which help in encoding
16  * certain components of a NormalizedNode properly
17  */
18 public interface NormalizedNodeSerializationContext {
19     int addNamespace(URI namespace);
20     int addRevision(Date revision);
21     int addLocalName(String localName);
22 }